Re: [tcljava-user] Executing tcl script from java using Interp,need , help about classpath
Brought to you by:
mdejong
From: Mo D. <md...@cy...> - 2001-03-29 06:49:52
|
On Wed, 28 Mar 2001, Ying Jin wrote: > Thank you very much! > I added tcljava.jar and tclblend.jar to my CLASSPATH, but I got the SAME error message. Could you give me further advise? Thanks a lot. > I got the SAME error message when I ran this java code inside tcl (After I type nmake shell). But I can successfully run other commands like "puts "say hello" " inside tcl. I also can create my own extension command. > The only problem is how to invoke tcl script by java code. > My code stop at new Interp(). Inside the constructor of Interp.java, the code stop at "interpPtr=create( ) ;". > Thanks a lot. > Ying Step 1: Run `nmake shell` that type `package require java`, that should work and return the version. Step 2: Get your CLASSPATH and PATH setup the same as in a `name shell` run. If that works you should be able to start tcl and run `package require java` without getting an error. If you get an error, then your path are not set correctly. That is all that is supported in version 1.2. Your "invoke tcl script by java code" comment is what has me wondering. Are you trying to load Tcl and Tcl Blend into an existing JVM? That is not supported in 1.2, but it does work in the 1.3 version in the CVS. Is that what you are trying to do? Mo DeJong Red Hat Inc |