Re: [tcljava-user] CLASSPATH using tclBlend
Brought to you by:
mdejong
From: Scott S. <ss...@am...> - 2006-03-09 16:12:19
|
What I do, and I think this is the only way to give Tcl/TclBlend your CLASSPATH is set it before you run TCL. I do in bash (just like I would setup Java, I don't use the -classpath option): export CLASSPATH=/projects/foo.jar Where you will want to do something similar on DOS. Then you can do: java:import com.foo.Bar or set mytclhandletojavaobject [java:new Test1] Read http://tcljava.sourceforge.net/docs/website/getstart.html (Interact with a Java Object in Tcl) and the manual. -Scott Mike Price wrote: > I have successfully set up tcl and tclBlend and run the 'package > require java' statement which returns the version number. I want to > be able to run a method in my separate JAVA program I have stored at > C:\Projects\Test and have a single class in the project called Test1. > When I try to invoke the method it is returning that it cannot find > the package. I do not know how to set the classpath up, I have tried: > > > > % java -classpath C:/Project/Test Test1 > > > > I don't think I have used the correct syntax though. Could anyone > tell me how I reference the java package using the classpath? Also, is > there anything else I will need to do (importing or referencing for > example) in order to get my project running? > > > > Thanks for your time, Michael > > > ------------------------------------------------------------------------ > Express yourself instantly with MSN Messenger! MSN Messenger > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/> |