Thread: [tcljava-user] Jacl Setup: Help requested.
Brought to you by:
mdejong
From: Richard S. <arc...@gm...> - 2007-03-06 20:59:05
|
Hello, I have spent the last week or so trying to install, and use Jacl on a Windows XP system. When I installed the latest 'binary release' I was able to run the jaclsh.bat file but my java program would not compile as it was not able to find the tcl.lang.* package. (I first tried using the code on the Get Started page but to no avail) Only after compiling the source files and then copying the tcl folder to the same location as my test file was I able to compile a small program that imports the tcl.lang package and creates a Interp instance - printing an 'OK' message one it's done that. When I run the program however it returns the error... Exception in thread "main" java.lang.NoClassDefFoundError: tcl/lang/TclRuntimeError at testImport.main(testImport.java:7). I couldn't find the class mentioned in the source release so googled the error and file name and found a TclRuntimeException.java file here: http://www.koders.com/java/fidBA376262E5B86423A1B6795FAF916127813F7342.aspx However after compiling and integrating this the error changed to saying that the TclException class was missing... as well as TclInteger among others. Are these known problems? Is there a fix? Why are these files missing in the first place? What I would really appreciate is someone guiding me through the installation, setup and use of Jacl on a Windows XP system if that is at all possble. Please? :) Background: I am a Third year Computer Science & A.I. student at the University of Sheffield, UK.. For my dissertation I am creating an API that will allow users to create Java based interfaces and interact with a tcl-based program that maps audio input to a 2d x,y positions on a screen using an Artifcial Neural Network. Jacl seems the most obvious tool for helping me acheive this. Any help much appreciateed, Richard Shaw |
From: Patrick F. <pfi...@oz...> - 2007-03-06 21:45:24
|
On Tuesday 06 March 2007 20:59, Richard Shaw wrote: > Hello, > > I have spent the last week or so trying to install, and use Jacl on a > Windows XP system. When I installed the latest 'binary release' I was able Hi Richard. See the following post at Java Ranch on how to run the JACL shell. http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=60&t=000208 You could use it to verify your installation and ensure that the jacl classes are dynamically loaded by the JVM. No need for bat files. If you still have issues send me your code. I am based in Sheffield at the moment. Regards. Patrick. |
From: Mo D. <mo...@mo...> - 2007-03-12 22:26:01
|
Richard Shaw wrote: > Hello, > > I have spent the last week or so trying to install, and use Jacl on a > Windows XP system. When I installed the latest 'binary release' I was > able to run the jaclsh.bat file but my java program would not compile > as it was not able to find the tcl.lang.* package. (I first tried > using the code on the Get Started page but to no avail) > > Only after compiling the source files and then copying the tcl folder > to the same location as my test file was I able to compile a small > program that imports the tcl.lang package and creates a Interp > instance - printing an 'OK' message one it's done that. When I run the > program however it returns the error... Richard, the problem you are having has nothing to do with Jacl. This is a Java CLASSPATH issue. You need to setup the CLASSPATH env var before invoking javac so that both jacl.jar and tcljava.jar appear on the CLASSPATH. You should be able to just download the binary Jacl release and use it as is. Please post another message if you are still having problems after the CLASSPATH is setup properly. cheers Mo DeJong |
From: Richard S. <arc...@gm...> - 2007-03-12 22:29:39
|
Hello again, Just a quick post to you let you know that I followed Patrick Finnegan's advice, and copied the *.jar files to the lib/ext folders of my java vm installation(s). I have had no problems running Jacl since then and this seems to be the 'cleanest' and easiest method I've come across so far. Thanks again, Richard. On 12/03/07, Mo DeJong <mo...@mo...> wrote: > > Richard Shaw wrote: > > Hello, > > > > I have spent the last week or so trying to install, and use Jacl on a > > Windows XP system. When I installed the latest 'binary release' I was > > able to run the jaclsh.bat file but my java program would not compile > > as it was not able to find the tcl.lang.* package. (I first tried > > using the code on the Get Started page but to no avail) > > > > Only after compiling the source files and then copying the tcl folder > > to the same location as my test file was I able to compile a small > > program that imports the tcl.lang package and creates a Interp > > instance - printing an 'OK' message one it's done that. When I run the > > program however it returns the error... > > Richard, the problem you are having has nothing to do with Jacl. This is > a Java CLASSPATH issue. You need to setup the > CLASSPATH env var before invoking javac so that both jacl.jar and > tcljava.jar appear on the CLASSPATH. You should be able > to just download the binary Jacl release and use it as is. Please post > another message if you are still having problems after the > CLASSPATH is setup properly. > > cheers > Mo DeJong > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > -- Homepage: http://www.dcs.shef.ac.uk/~u4rs Web Radio: http://music.uk.launch.yahoo.com/lc/?rt=0&rp1=0&rp2=1222724716 |