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: [tcljava-user] CLASSPATH using tclBlend
by Mo DeJong other posts by this author
Mar 14 2006 5:44PM messages near this date
RE: Re: [tcljava-user] CLASSPATH using tclBlend | [tcljava-user] Passing string from tcl to JAVA using tclBlend
On Mon, 13 Mar 2006 15:39:30 +0000
"Mike Price" <mikeprice89@[...].com>  wrote:

>  I am sorry to be troubling you again but I have been unable to figure out how to set the C
LASSPATH
>  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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting 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-us.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
Thread:
Mike Price
Scott Serr
Mike Price
Mo DeJong

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