Re: [tcljava-user] CLASSPATH using tclBlend
Brought to you by:
mdejong
From: Mo D. <md...@un...> - 2006-03-15 01:43:32
|
On Mon, 13 Mar 2006 15:39:30 +0000 "Mike Price" <mik...@ho...> wrote: > I am sorry to be troubling you again but I have been unable to figure out how to set the CLASSPATH > for my project so I can reference my JAVA classes from the tcl command line. It sounds like you are using Windows, so you should be starting up Tcl Blend via the jtclsh.bat script. It is installed in the bin directory when you run "make install". Open up the jtclsh.bat script in an editor and look for the lines where the CLASSPATH is set. Copy the last set command and paste it on a new line, then change the path so that it includes the root dir where your Java classes live. After starting Tcl Blend, you should be able to run: package require java If you were allocating a Java object named Test in the package foo.bar, you would run: set obj [java::new foo.bar.Test] If you get this far, then your CLASSPATH is setup correctly. I hope that fixes you problem. If it does not, then be sure to include the exact error message that you are getting in your next post. cheers Mo DeJong |