ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcljava-user
tcljava-user
RE: Re: [tcljava-user] CLASSPATH using tclBlend
by Mike Price other posts by this author
Mar 13 2006 7:40AM messages near this date
Re: [tcljava-user] CLASSPATH using tclBlend | Re: [tcljava-user] CLASSPATH using tclBlend
I am sorry to be troubling you again but I have been unable to figure out how to set the CLA
SSPATH for my project so I can reference my JAVA classes from the tcl command line.  I have 
read the manual and 'start here' pages from the tcl/JAVA project homepages and have had no l
uck.  I have tried:
 
% set CLASSPATH=%CLASSPATH%;C:/Project/Test3
 
It is returning that it cannot read the variable.  There must be a CLASSPATH variable though
 to set up all the other global variables so I am assuming I am looking in the wrong place f
or the variable.
 
I am based at the University of Manchester in my final year doing a software engineering cou
rse so any help would be much appreciated.
 
Thanks, Mike.  Ps- are you based at a University?

>  From: sserr@[...].com> To: tcljava-user@[...].net> Subject: Re: [tcljava-user] CLASSPATH u
sing tclBlend>  Date: Thu, 9 Mar 2006 09:12:01 -0700> > What I do, and I think this is the on
ly 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=/p
rojects/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 tclB
lend and run the 'package >  > require java' statement which returns the version number.  I w
ant to >  > be able to run a method in my separate JAVA program I have stored at > > C:\Proje
cts\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 cl
asspath 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 refer
ence the java package using the classpath? Also, is >  > there anything else I will need to d
o (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/> > > > > > ----------------------------
--------------------------->  This SF.Net email is sponsored by xPML, a groundbreaking script
ing language>  that extends applications into web and mobile media. Attend the live webcast> 
and join the prime developer group breaking into this new coding territory!>  http://sel.as-u
s.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>  _________________________________
______________>  tcljava-user mailing list> tcljava-user@[...].net> https://lists.sourceforge
.net/lists/listinfo/tcljava-user
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Attachments:
unknown1
unknown2

Thread:
Mike Price
Scott Serr
Mike Price
Mo DeJong

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved