Thread: [tcljava-user] help needed on configuring jacl
Brought to you by:
mdejong
From: community h. <hel...@ya...> - 2005-08-06 18:50:36
|
Hi, I've installed jacl in the root ddirectory of msys-mingw, then i installed tcl on the root directory too. Now when i run the make shell once in the interpreter i tried: package require java but i have a message saying: cannot find package java or something like this. How shouldd i solve this problem? An other question concerning tcl is that i want to add tcl to the path but there is no .bash_profile file. So i have to go to the "win directory and run make shell every time. Thank you __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Mo D. <md...@un...> - 2005-08-07 22:32:50
|
On Sat, 6 Aug 2005 11:50:26 -0700 (PDT) community help <hel...@ya...> wrote: > Hi, > > I've installed jacl in the root ddirectory of > msys-mingw, then i installed tcl on the root directory > too. Jacl is a Tcl interp. You don't need to install the C version of Tcl to use Jacl. > Now when i run the make shell once in the interpreter > i tried: package require java but i have a message > saying: cannot find package java or something like > this. Once Jacl is installed, you should run it via the jtclsh shell or the jtclsh.bat batch file. The 'make shell' target is used to run jacl from the build directory before it is installed). > How shouldd i solve this problem? > An other question concerning tcl is that i want to add > tcl to the path but there is no .bash_profile file. So > i have to go to the "win directory and run make shell > every time. cd $JACLINSTALL/bin export PATH=${PATH}:`pwd` jaclsh cheers Mo DeJong |
From: community h. <hel...@ya...> - 2005-09-08 11:10:11
|
Hi, when i've run "make install" i had the following: ........ ......... ......... Installing jaclsh.bat in /usr/local/bin Exception in thread "main" java.lang.NoClassDefFoundError:tcl/lang/shell Instead of this error i can run the getting started example of using java variables in tcl. But i can't use tcl in java code. i tested a simple hello world containing "import tcl.lang.*;". the java compiler displays an error saying that it can't import tcl.lang.*. Thank you ______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ |
From: Mo D. <md...@un...> - 2005-09-08 17:28:50
|
On Thu, 8 Sep 2005 04:10:00 -0700 (PDT) community help <hel...@ya...> wrote: > Hi, > > when i've run "make install" i had the following: > ........ > ......... > ......... > Installing jaclsh.bat in /usr/local/bin > Exception in thread "main" > java.lang.NoClassDefFoundError:tcl/lang/shell Did installing "jaclsh" also fail with the same error or was it just the jaclsh.bat file that did not work? Could you take a look at the generated jaclsh.bat file and see if there is something obviously wrong. The only thing I can think of is that perhaps jacl.jar or tcljava.jar were generated incorrectly and will not load into the JVM. Could you try setting the CLASSPATH to include these jar files and then run "java tcl.lang.Shell" by hand to see if that works. Also, what OS and JVM Version are you using? I hope that helps Mo DeJong |
From: community h. <hel...@ya...> - 2005-09-16 11:41:43
|
Hi, I reinstalled verything (in case i made a mistake while installing last time). By everything i mean java, msys and jacl. But the problem still persists. --- Mo DeJong <md...@un...> wrote: > On Thu, 8 Sep 2005 04:10:00 -0700 (PDT) > community help <hel...@ya...> wrote: > > > Hi, > > > > when i've run "make install" i had the following: > > ........ > > ......... > > ......... > > Installing jaclsh.bat in /usr/local/bin > > Exception in thread "main" > > java.lang.NoClassDefFoundError:tcl/lang/shell > > Did installing "jaclsh" also fail with the same > error or was it > just the jaclsh.bat file that did not work? Could > you take a > look at the generated jaclsh.bat file and see if > there is something > obviously wrong. The only thing I can think of is > that perhaps jaclsh installed successfully. Here is the content of my jaclsh.bat: -------------------- @echo off setlocal set JAVA=c:/j2sdk1.4.1/bin/java set JAVA_FLAGS= -ms5m -mx22m set PREFIX=C:/msys/jacl1.3.2/NONE set XP_TCLJAVA_INSTALL_DIR=%PREFIX%/lib/tcljava1.3.2 set CLASSPATH=%CLASSPATH%;%XP_TCLJAVA_INSTALL_DIR%/tcljava.jar set CLASSPATH=%CLASSPATH%;%XP_TCLJAVA_INSTALL_DIR%/jacl.jar %JAVA% %JAVA_FLAGS% tcl.lang.Shell %1 %2 %3 %4 %5 %6 %7 %8 %9 endlocal ------------------ > jacl.jar or tcljava.jar were generated incorrectly > and will not > load into the JVM. Could you try setting the > CLASSPATH to > include these jar files and then run "java > tcl.lang.Shell" by hand > to see if that works. Also, what OS and JVM Version > are you using? It didn't work. I'm using Windows XP, java1.4.1, msys_mingw8 and jacl1.3.2. My msys directory does not contain any directory of name usr. Perhaps this is the problem as jacl tries to install in /usr/local/bin? If the problem is my java version can you give me the version with which jacl works well? for the classpath i added a classpath variable to system variables and gave it a value of : c:\msys\jacl1.3.2\jacl, it didn't work then i added it to user variables and it didn't work too. Thank you for your help __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Mo D. <md...@un...> - 2005-09-16 21:24:00
|
On Fri, 16 Sep 2005 04:41:37 -0700 (PDT) community help <hel...@ya...> wrote: > > Did installing "jaclsh" also fail with the same > > error or was it > > just the jaclsh.bat file that did not work? > jaclsh installed successfully. Well, that does help. > Here is the content of my jaclsh.bat: > -------------------- > @echo off > setlocal > > set JAVA=c:/j2sdk1.4.1/bin/java > set JAVA_FLAGS= -ms5m -mx22m > > set PREFIX=C:/msys/jacl1.3.2/NONE Ahh, this seems to be the problem. The prefix should not include "NONE" there at the end. How did you configure jacl? Could you post the exact configure command line you used? > My msys directory does not contain any directory of > name usr. Perhaps this is the problem as jacl tries to > install in /usr/local/bin? My guess here is that you configured jacl like so: ./configure make make install And the problem is showing up because the prefix is getting set to "NONE" instead of /usr/local which is what it would get set to by default. Does it work if you run configure like so: ./configure --prefix=/usr/local make make install If that fixes the problem, then it is clearly caused by the default --prefix value not getting setup correctly in the configure file. Could you let me know if that is the problem you were running into? thanks Mo DeJong |
From: community h. <hel...@ya...> - 2005-09-19 14:37:45
|
Hi, Now the installation ended with the following message: Testing installed program Installed programming is working correctly So,i did a mistake of not specifying arguments of configure. When i've read the readme i understood that it was possible to run the configure script without arguments because in this case the script chooses the default directory. Thank you very much for your help --- Mo DeJong <md...@un...> wrote: > On Fri, 16 Sep 2005 04:41:37 -0700 (PDT) > community help <hel...@ya...> wrote: > > > > Did installing "jaclsh" also fail with the same > > > error or was it > > > just the jaclsh.bat file that did not work? > > jaclsh installed successfully. > > Well, that does help. > > > Here is the content of my jaclsh.bat: > > -------------------- > > @echo off > > setlocal > > > > set JAVA=c:/j2sdk1.4.1/bin/java > > set JAVA_FLAGS= -ms5m -mx22m > > > > set PREFIX=C:/msys/jacl1.3.2/NONE > > Ahh, this seems to be the problem. The prefix should > not > include "NONE" there at the end. How did you > configure > jacl? Could you post the exact configure command > line > you used? > > > My msys directory does not contain any directory > of > > name usr. Perhaps this is the problem as jacl > tries to > > install in /usr/local/bin? > > My guess here is that you configured jacl like so: > > ./configure > make > make install > > And the problem is showing up because the prefix > is getting set to "NONE" instead of /usr/local which > is what it would get set to by default. Does it work > if you run configure like so: > > ./configure --prefix=/usr/local > make > make install > > If that fixes the problem, then it is clearly caused > by > the default --prefix value not getting setup > correctly > in the configure file. Could you let me know if that > is the problem you were running into? > > thanks > Mo DeJong > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's > Geronimo App Server. > Download it for free - -and be entered to win a 42" > plasma tv or your very > own Sony(tm)PSP. Click here to play: > http://sourceforge.net/geronimo.php > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |