RE: Re: [tcljava-user] CLASSPATH using tclBlend
Brought to you by:
mdejong
From: Mike P. <mik...@ho...> - 2006-03-13 15:39:36
|
I am sorry to be troubling you again but I have been unable to figure out h= ow to set the CLASSPATH for my project so I can reference my JAVA classes f= rom the tcl command line. I have read the manual and 'start here' pages fr= om the tcl/JAVA project homepages and have had no luck. I have tried: =20 % set CLASSPATH=3D%CLASSPATH%;C:/Project/Test3 =20 It is returning that it cannot read the variable. There must be a CLASSPAT= H variable though to set up all the other global variables so I am assuming= I am looking in the wrong place for the variable. =20 I am based at the University of Manchester in my final year doing a softwar= e engineering course so any help would be much appreciated. =20 Thanks, Mike. Ps- are you based at a University? > From: ss...@am...> To: tcl...@li...> Subject: Re= : [tcljava-user] CLASSPATH using tclBlend> Date: Thu, 9 Mar 2006 09:12:01 -= 0700> > What I do, and I think this is the only way to give Tcl/TclBlend yo= ur > CLASSPATH is set it before you run TCL.> > I do in bash (just like I w= ould setup Java, I don't use the -classpath > option):> export CLASSPAT= H=3D/projects/foo.jar> Where you will want to do something similar on DOS.>= > Then you can do:> java:import com.foo.Bar> or> set mytclhandleto= javaobject [java:new Test1]> > Read http://tcljava.sourceforge.net/docs/web= site/getstart.html (Interact > with a Java Object in Tcl) and the manual.> = > -Scott> > Mike Price wrote:> > > I have successfully set up tcl and tclBl= end and run the 'package > > require java' statement which returns the vers= ion number. I want to > > be able to run a method in my separate JAVA prog= ram I have stored at > > C:\Projects\Test and have a single class in the pr= oject called Test1. > > When I try to invoke the method it is returning th= at 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 anyo= ne > > 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 y= our time, Michael> >> >> > ------------------------------------------------= ------------------------> > Express yourself instantly with MSN Messenger! = MSN Messenger > > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>> = > > > > -------------------------------------------------------> This SF.Ne= t email is sponsored by xPML, a groundbreaking scripting language> that ext= ends applications into web and mobile media. Attend the live webcast> and j= oin the prime developer group breaking into this new coding territory!> htt= p://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D1216= 42> _______________________________________________> tcljava-user mailing l= ist> tcl...@li...> https://lists.sourceforge.net/list= s/listinfo/tcljava-user _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/= |