Re: [tcljava-user] tcl.lang.TclException: can't find package dict
Brought to you by:
mdejong
From: Leonardo K. S. <sh...@gm...> - 2013-10-24 03:47:27
|
Hi Tom fortunately I figured out myself what was the problem, so I decided to write something about, just in case :-) http://leonotepad.blogspot.com.br/2013/10/how-to-get-tcl-huddle-from-inside-jacl.html I had to hack jacl in several different places to make it work, so jtcl seems to be a cleaner and more elegant solution that I'll certainly evaluate in a near future. Thanks Leo On Wed, Oct 23, 2013 at 10:11 PM, Tom Poindexter <tpo...@ny...> wrote: > Hi Leo, > > You might want to try JTcl, the 'dict' command was backported > to JTcl in 2011. JTcl also includes Tcllib 1.13 in the > distribution jar, several other 8.5 backported commands, > as well as a few other useful Java oriented packages. > > https://jtcl.kenai.com/ > > The 'huddle' package loads up, although I've never had a need > to use it: > > $ jtcl > % package require huddle > 0.1.5 > % > > > Cheers, > Tom > > > > On Wed, Oct 23, 2013 at 05:23:05PM -0200, Leonardo K. Shikida wrote: > > Hi > > > > I am having an strange problem here. > > > > (...) > > Interp interp = new Interp(); > > interp.eval("lappend auto_path \"LIB\"".replaceAll("LIB", > > "/usr/local/lib/tcllib1.15/")); > > interp.eval("puts \"$auto_path\""); > > interp.eval("package require huddle"); << > > exception > > (...) > > > > Exception in thread "main" tcl.lang.TclException: can't find package dict > > at tcl.lang.PackageCmd.pkgRequire(PackageCmd.java:252) > > at tcl.lang.PackageCmd.cmdProc(PackageCmd.java:551) > > at tcl.lang.Parser.evalObjv(Parser.java:826) > > at tcl.lang.Parser.eval2(Parser.java:1228) > > at tcl.lang.Interp.eval(Interp.java:2679) > > at tcl.lang.Interp.eval(Interp.java:2747) > > at tcl.lang.IfCmd.cmdProc(IfCmd.java:64) > > at tcl.lang.Parser.evalObjv(Parser.java:826) > > at tcl.lang.Parser.eval2(Parser.java:1228) > > at tcl.lang.Interp.eval(Interp.java:2679) > > at tcl.lang.Interp.evalFile(Interp.java:2940) > > at tcl.lang.SourceCmd.cmdProc(SourceCmd.java:73) > > at tcl.lang.Parser.evalObjv(Parser.java:826) > > at tcl.lang.Parser.eval2(Parser.java:1228) > > at tcl.lang.Interp.eval(Interp.java:2679) > > at tcl.lang.PackageCmd.pkgRequire(PackageCmd.java:197) > > at tcl.lang.PackageCmd.cmdProc(PackageCmd.java:551) > > at tcl.lang.Parser.evalObjv(Parser.java:826) > > at tcl.lang.Parser.eval2(Parser.java:1228) > > at tcl.lang.Interp.eval(Interp.java:2679) > > at tcl.lang.Interp.eval(Interp.java:2660) > > at JaclTest.main(JaclTest.java:16) > > > > It seems that huddle obviously needs dict, but dict was added to the > > interpreter since TCL 8.5, I think. Tcllib was installed on a machine > that > > (I think) has no TCL8.4 (how do I check this? rpq -q says I only have > 8.5), > > so I am assuming it's not the same problem as told at [ > > http://www2.tcl.tk/13419] > > > > I am pretty sure that this is some OS configuration issue because I have > > the same java code running in another redHat distro. > > > > TIA > > > > Leo > > > > ------------------------------------------------------------------------------ > > October Webinars: Code for Performance > > Free Intel webinars can help you accelerate application performance. > > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > > the latest Intel processors and coprocessors. See abstracts and register > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > > > _______________________________________________ > > tcljava-user mailing list > > tcl...@li... > > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > -- > Tom Poindexter > tpo...@ny... > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > |