Various things have changed on my system since the last time I ran a NetRexx
program and it had stopped working. Rather than try to figure out what had changed, I simply downloaded a fresh copy of the zip file from IBM. Turns out it was the same as the one I had, but I was unable to successfully install it. It appears that some things have changed on the Java-front, not the least of which is that I do not seem to have a 'tools.jar' file. There is a daemon that periodically downloads the latest JRE for me, and what I have is C:\Program Files\Java\jre6\lib" (and \bin), reported to be at the level "Version 6 Update 15 (build 1.6.0_15-b03). I seem to recall that in the past I had the JDK installed as well, but the NetRexx installation instructions do not indicate that the development kit is necessary. I've tried moving the NetRexx files to the specified directories, updating the PATH and CLASSPATH, and any other variants I could think of, but I still get: C:\Program Files\Java\jre6\bin>java COM.ibm.netrexx.process.NetRexxC hello NetRexx portable processor, version 2.05 Copyright (c) IBM Corporation, 2005. All rights reserved. Program hello.nrx Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) at COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 4 more Suggestions? -Chip- |
Hello Chip,
the tools.jar file is in the ...\JRE\subdirectory. You probaly hand-moved it to your NetRexx directory, or moved NetRexx to the proper Java ... \JRE\... Directory. When you like, I could look up in detail in my NetRexx installation, but when you would like me to do, please send me a private mail to [hidden email]. I do NOT want to bother the group/REXXLA with all those details ... Kind regards, Tom. (PS: By the way, the CURRENT Rexx2Nrx.zip file on www.Rexx2Nrx.com SHOULD contain a valid copy of NetRexx as well ...) PPS: I did somewhere recognize a release version 2.05 of netRexx (I think from Kermit Kiser, or at the IBM home-pages, I am NOT sure), but as I am be off from ibm-netrexx for more than 2 years, I am NOT sure what the most recent version is. I'm still using NetRexx 2.02 without any problems, by the way. ============================================================= Chip Davis schrieb: > Various things have changed on my system since the last time I ran a > NetRexx > program and it had stopped working. Rather than try to figure out > what had > changed, I simply downloaded a fresh copy of the zip file from IBM. > Turns out > it was the same as the one I had, but I was unable to successfully > install it. > > It appears that some things have changed on the Java-front, not the > least of > which is that I do not seem to have a 'tools.jar' file. > > There is a daemon that periodically downloads the latest JRE for me, > and what I > have is C:\Program Files\Java\jre6\lib" (and \bin), reported to be at > the level > "Version 6 Update 15 (build 1.6.0_15-b03). > > I seem to recall that in the past I had the JDK installed as well, but > the > NetRexx installation instructions do not indicate that the development > kit is > necessary. > > I've tried moving the NetRexx files to the specified directories, > updating the > PATH and CLASSPATH, and any other variants I could think of, but I > still get: > > C:\Program Files\Java\jre6\bin>java COM.ibm.netrexx.process.NetRexxC > hello > NetRexx portable processor, version 2.05 > Copyright (c) IBM Corporation, 2005. All rights reserved. > Program hello.nrx > Exception in thread "main" java.lang.NoClassDefFoundError: > sun/tools/javac/Main > at > COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) > at COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) > at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) > at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) > Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > ... 4 more > > Suggestions? > > -Chip- > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > >
Tom. (ths@db-123.com)
|
Thanks for the prompt reply, Tom.
Yes, NetRexx 2.05 is the current distribution and what I attempted to install. I did an exhaustive search of the entire drive and the only "tools.jar" file on it is a Mozilla "hdrtools.jar" file used with Chrome. My best guess is that somewhere along the line my JDK was replaced (probably by one of those too-smart automated downloads) with just the JRE. I was not aware that the only way to get 'tools.jar' was via the JDK. If true (and that is indeed my problem) then at the very least we need to make a notation in the Users Guide and installation ReadMe. And while I'm asking, can anyone confirm that it is possible to compile and run NetRexx apps without having to move any NetRexx files into Java directories, but with appropriate entries in the PATH and CLASSPATH environment variables? I don't want to have to move NetRexx files each time I get an updated version of Java. -Chip- On 1/31/10 18:47 Thomas Schneider said: > Hello Chip, > the tools.jar file is in the ...\JRE\subdirectory. You probaly > hand-moved it to your > NetRexx directory, or moved NetRexx to the proper Java ... \JRE\... > Directory. > > When you like, I could look up in detail in my NetRexx installation, but > when you would like > me to do, please send me a private mail to [hidden email]. > > I do NOT want to bother the group/REXXLA with all those details ... > > Kind regards, Tom. > > (PS: By the way, the CURRENT Rexx2Nrx.zip file on www.Rexx2Nrx.com > SHOULD contain > a valid copy of NetRexx as well ...) > > PPS: I did somewhere recognize a release version 2.05 of netRexx (I > think from Kermit Kiser, > or at the IBM home-pages, I am NOT sure), but as I am be off from > ibm-netrexx > for more than 2 years, I am NOT sure what the most recent version is. > > I'm still using NetRexx 2.02 without any problems, by the way. > > ============================================================= > Chip Davis schrieb: >> Various things have changed on my system since the last time I ran a >> NetRexx >> program and it had stopped working. Rather than try to figure out >> what had >> changed, I simply downloaded a fresh copy of the zip file from IBM. >> Turns out >> it was the same as the one I had, but I was unable to successfully >> install it. >> >> It appears that some things have changed on the Java-front, not the >> least of >> which is that I do not seem to have a 'tools.jar' file. >> >> There is a daemon that periodically downloads the latest JRE for me, >> and what I >> have is C:\Program Files\Java\jre6\lib" (and \bin), reported to be at >> the level >> "Version 6 Update 15 (build 1.6.0_15-b03). >> >> I seem to recall that in the past I had the JDK installed as well, but >> the >> NetRexx installation instructions do not indicate that the development >> kit is >> necessary. >> >> I've tried moving the NetRexx files to the specified directories, >> updating the >> PATH and CLASSPATH, and any other variants I could think of, but I >> still get: >> >> C:\Program Files\Java\jre6\bin>java COM.ibm.netrexx.process.NetRexxC >> hello >> NetRexx portable processor, version 2.05 >> Copyright (c) IBM Corporation, 2005. All rights reserved. >> Program hello.nrx >> Exception in thread "main" java.lang.NoClassDefFoundError: >> sun/tools/javac/Main >> at >> COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) >> at COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) >> at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) >> at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) >> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main >> at java.net.URLClassLoader$1.run(Unknown Source) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(Unknown Source) >> at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) >> at java.lang.ClassLoader.loadClass(Unknown Source) >> at java.lang.ClassLoader.loadClass(Unknown Source) >> at java.lang.ClassLoader.loadClassInternal(Unknown Source) >> ... 4 more >> >> Suggestions? >> >> -Chip- >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> >> > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > > |
Am Sonntag, 31. Januar 2010 20:41:29 schrieb Chip Davis:
> Thanks for the prompt reply, Tom. > > Yes, NetRexx 2.05 is the current distribution and what I attempted to > install. > > I did an exhaustive search of the entire drive and the only "tools.jar" > file on it is a Mozilla "hdrtools.jar" file used with Chrome. > > My best guess is that somewhere along the line my JDK was replaced > (probably by one of those too-smart automated downloads) with just the JRE. > > I was not aware that the only way to get 'tools.jar' was via the JDK. If > true (and that is indeed my problem) then at the very least we need to make > a notation in the Users Guide and installation ReadMe. > > And while I'm asking, can anyone confirm that it is possible to compile and > run NetRexx apps without having to move any NetRexx files into Java > directories, but with appropriate entries in the PATH and CLASSPATH > environment variables? I can confirm that it is possible (though I've used to compile from within jedit with the NetRexx plugin) It's just a matter of the CLASSPATH setting as you said, on a linux box I have added the current directory in the CLASSPATH with a dot CLASSPATH=/usr/lib/jvm/java-6-sun/lib:/usr/lib/jvm/java-6-sun/lib/tools.jar:. and it works pretty well kapeka@stalker:~/NetRexx/user2mailzu$ java mailuser Start at: Sun Jan 31 21:06:18 CET 2010 Finished at: Sun Jan 31 21:06:22 CET 2010 kapeka@stalker:~/NetRexx/user2mailzu$ (Note that I did have problems with tools.jar as well, and added it to CLASSPATH to have a solution - I'm not shure, it may be an error in my linux distribution) Also I point in my PATH setting to the java binary PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun/bin Thats all AFAIR regards kp |
In reply to this post by Chip Davis-2
Hi Chip ;
The NetRexx user guide says that the JDK is required if you want to compile NetRexx programs with the SUN compiler. Note that the guide calls the JDK a "toolkit": Note that to run any of the samples, or use the NetRexx translator, you must have already installed the Java runtime (and toolkit, if you want to compile NetRexx programs using the default compiler). The section on using the translator as a compiler says this: The installation instructions for the NetRexx translator describe how to use the package to compile and run a simple NetRexx program (hello.nrx). When using the translator in this way (as a compiler), the translator parses and checks the NetRexx source code, and if no errors were found then generates Java source code. This Java code (which is known to be correct) is then compiled into bytecodes (.class files) using a Java compiler. By default, the javac compiler in the Java toolkit is used. From the troubleshooting section: The compiler appears to work, but towards the end fails with Exception ... NoClassDefFoundError: sun/tools/javac/Main. This indicates that you are running Java 1.2 or later but did not add the Java tools to your CLASSPATH (hence Java could not find the javac compiler). See the Installing for Java 1.2+ section (see page 8) for more details, and an alternative action. You have only the Java runtime installed, and not the toolkit. If the toolkit is installed, you should have a program called javac on your computer. You can check whether javac is available and working by issuing the javac command at a command prompt; it should respond with usage information. I don't think you need the JDK if you use NetRexx as an interpreter. -- Kermit Chip Davis wrote: > Thanks for the prompt reply, Tom. > > Yes, NetRexx 2.05 is the current distribution and what I attempted to > install. > > I did an exhaustive search of the entire drive and the only > "tools.jar" file on it is a Mozilla "hdrtools.jar" file used with Chrome. > > My best guess is that somewhere along the line my JDK was replaced > (probably by one of those too-smart automated downloads) with just the > JRE. > > I was not aware that the only way to get 'tools.jar' was via the JDK. > If true (and that is indeed my problem) then at the very least we need > to make a notation in the Users Guide and installation ReadMe. > > And while I'm asking, can anyone confirm that it is possible to > compile and run NetRexx apps without having to move any NetRexx files > into Java directories, but with appropriate entries in the PATH and > CLASSPATH environment variables? > > I don't want to have to move NetRexx files each time I get an updated > version of Java. > > -Chip- > > On 1/31/10 18:47 Thomas Schneider said: >> Hello Chip, >> the tools.jar file is in the ...\JRE\subdirectory. You probaly >> hand-moved it to your >> NetRexx directory, or moved NetRexx to the proper Java ... \JRE\... >> Directory. >> >> When you like, I could look up in detail in my NetRexx installation, >> but when you would like >> me to do, please send me a private mail to [hidden email]. >> >> I do NOT want to bother the group/REXXLA with all those details ... >> >> Kind regards, Tom. >> >> (PS: By the way, the CURRENT Rexx2Nrx.zip file on www.Rexx2Nrx.com >> SHOULD contain >> a valid copy of NetRexx as well ...) >> >> PPS: I did somewhere recognize a release version 2.05 of netRexx (I >> think from Kermit Kiser, >> or at the IBM home-pages, I am NOT sure), but as I am be off from >> ibm-netrexx >> for more than 2 years, I am NOT sure what the most recent version is. >> >> I'm still using NetRexx 2.02 without any problems, by the way. >> >> ============================================================= >> Chip Davis schrieb: >>> Various things have changed on my system since the last time I ran a >>> NetRexx >>> program and it had stopped working. Rather than try to figure out >>> what had >>> changed, I simply downloaded a fresh copy of the zip file from IBM. >>> Turns out >>> it was the same as the one I had, but I was unable to successfully >>> install it. >>> >>> It appears that some things have changed on the Java-front, not the >>> least of >>> which is that I do not seem to have a 'tools.jar' file. >>> >>> There is a daemon that periodically downloads the latest JRE for me, >>> and what I >>> have is C:\Program Files\Java\jre6\lib" (and \bin), reported to be >>> at the level >>> "Version 6 Update 15 (build 1.6.0_15-b03). >>> >>> I seem to recall that in the past I had the JDK installed as well, >>> but the >>> NetRexx installation instructions do not indicate that the >>> development kit is >>> necessary. >>> >>> I've tried moving the NetRexx files to the specified directories, >>> updating the >>> PATH and CLASSPATH, and any other variants I could think of, but I >>> still get: >>> >>> C:\Program Files\Java\jre6\bin>java COM.ibm.netrexx.process.NetRexxC >>> hello >>> NetRexx portable processor, version 2.05 >>> Copyright (c) IBM Corporation, 2005. All rights reserved. >>> Program hello.nrx >>> Exception in thread "main" java.lang.NoClassDefFoundError: >>> sun/tools/javac/Main >>> at >>> COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) >>> at COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) >>> at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) >>> at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) >>> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main >>> at java.net.URLClassLoader$1.run(Unknown Source) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at java.net.URLClassLoader.findClass(Unknown Source) >>> at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) >>> at java.lang.ClassLoader.loadClass(Unknown Source) >>> at java.lang.ClassLoader.loadClass(Unknown Source) >>> at java.lang.ClassLoader.loadClassInternal(Unknown Source) >>> ... 4 more >>> >>> Suggestions? >>> >>> -Chip- >>> _______________________________________________ >>> Ibm-netrexx mailing list >>> [hidden email] >>> >>> >> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> >> > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > > > An HTML attachment was scrubbed... URL: http://ns.hursley.ibm.com/pipermail/ibm-netrexx/attachments/20100131/b20f3ee7/attachment.html |
Thanks Kermit! That's all I wanted to hear.
I have found that the simpler the problem seems to be, the greater the likelihood that I've misunderstood something. :-) I just wanted to make sure that all I needed to do was install the JDK. Then maybe I'll take a crack at updating the installation ReadMe to reflect the fact that SUN has changed (again) the directory naming conventions, and to make explicit the option of not moving the .jar files and the references to the JDK. If the JDK is truly optional, the installation verification procedure (compiling hello.nrx) is not really appropriate, imho. -Chip- On 1/31/10 20:27 Kermit Kiser said: > Hi Chip ; > > The NetRexx user guide says that the JDK is required if you want to > compile NetRexx programs with the SUN compiler. Note that the guide > calls the JDK a "toolkit": > > Note that to run any of the samples, or use the NetRexx translator, > you must have > already installed the Java runtime (and toolkit, if you want to > compile NetRexx programs > using the default compiler). > > The section on using the translator as a compiler says this: > > The installation instructions for the NetRexx translator describe > how to use the package > to compile and run a simple NetRexx program (hello.nrx). When using > the translator > in this way (as a compiler), the translator parses and checks the > NetRexx source code, > and if no errors were found then generates Java source code. This > Java code (which is > known to be correct) is then compiled into bytecodes (.class files) > using a Java compiler. > By default, the javac compiler in the Java toolkit is used. > > >From the troubleshooting section: > > The compiler appears to work, but towards the end fails with > Exception ... > NoClassDefFoundError: sun/tools/javac/Main. This indicates that you > are running Java > 1.2 or later but did not add the Java tools to your CLASSPATH (hence > Java could > not find the javac compiler). See the Installing for Java 1.2+ > section (see page 8) for > more details, and an alternative action. > > You have only the Java runtime installed, and not the toolkit. If > the toolkit is > installed, you should have a program called javac on your computer. > You can check > whether javac is available and working by issuing the javac command > at a command > prompt; it should respond with usage information. > > I don't think you need the JDK if you use NetRexx as an interpreter. > > -- Kermit > > > Chip Davis wrote: >> Thanks for the prompt reply, Tom. >> >> Yes, NetRexx 2.05 is the current distribution and what I attempted to >> install. >> >> I did an exhaustive search of the entire drive and the only >> "tools.jar" file on it is a Mozilla "hdrtools.jar" file used with Chrome. >> >> My best guess is that somewhere along the line my JDK was replaced >> (probably by one of those too-smart automated downloads) with just the >> JRE. >> >> I was not aware that the only way to get 'tools.jar' was via the JDK. >> If true (and that is indeed my problem) then at the very least we need >> to make a notation in the Users Guide and installation ReadMe. >> >> And while I'm asking, can anyone confirm that it is possible to >> compile and run NetRexx apps without having to move any NetRexx files >> into Java directories, but with appropriate entries in the PATH and >> CLASSPATH environment variables? >> >> I don't want to have to move NetRexx files each time I get an updated >> version of Java. >> >> -Chip- >> >> On 1/31/10 18:47 Thomas Schneider said: >>> Hello Chip, >>> the tools.jar file is in the ...\JRE\subdirectory. You probaly >>> hand-moved it to your >>> NetRexx directory, or moved NetRexx to the proper Java ... \JRE\... >>> Directory. >>> >>> When you like, I could look up in detail in my NetRexx installation, >>> but when you would like >>> me to do, please send me a private mail to [hidden email]. >>> >>> I do NOT want to bother the group/REXXLA with all those details ... >>> >>> Kind regards, Tom. >>> >>> (PS: By the way, the CURRENT Rexx2Nrx.zip file on www.Rexx2Nrx.com >>> SHOULD contain >>> a valid copy of NetRexx as well ...) >>> >>> PPS: I did somewhere recognize a release version 2.05 of netRexx (I >>> think from Kermit Kiser, >>> or at the IBM home-pages, I am NOT sure), but as I am be off from >>> ibm-netrexx >>> for more than 2 years, I am NOT sure what the most recent version is. >>> >>> I'm still using NetRexx 2.02 without any problems, by the way. >>> >>> ============================================================= >>> Chip Davis schrieb: >>>> Various things have changed on my system since the last time I ran a >>>> NetRexx >>>> program and it had stopped working. Rather than try to figure out >>>> what had >>>> changed, I simply downloaded a fresh copy of the zip file from IBM. >>>> Turns out >>>> it was the same as the one I had, but I was unable to successfully >>>> install it. >>>> >>>> It appears that some things have changed on the Java-front, not the >>>> least of >>>> which is that I do not seem to have a 'tools.jar' file. >>>> >>>> There is a daemon that periodically downloads the latest JRE for me, >>>> and what I >>>> have is C:\Program Files\Java\jre6\lib" (and \bin), reported to be >>>> at the level >>>> "Version 6 Update 15 (build 1.6.0_15-b03). >>>> >>>> I seem to recall that in the past I had the JDK installed as well, >>>> but the >>>> NetRexx installation instructions do not indicate that the >>>> development kit is >>>> necessary. >>>> >>>> I've tried moving the NetRexx files to the specified directories, >>>> updating the >>>> PATH and CLASSPATH, and any other variants I could think of, but I >>>> still get: >>>> >>>> C:\Program Files\Java\jre6\bin>java COM.ibm.netrexx.process.NetRexxC >>>> hello >>>> NetRexx portable processor, version 2.05 >>>> Copyright (c) IBM Corporation, 2005. All rights reserved. >>>> Program hello.nrx >>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>> sun/tools/javac/Main >>>> at >>>> COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) >>>> at COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) >>>> at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) >>>> at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) >>>> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main >>>> at java.net.URLClassLoader$1.run(Unknown Source) >>>> at java.security.AccessController.doPrivileged(Native Method) >>>> at java.net.URLClassLoader.findClass(Unknown Source) >>>> at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) >>>> at java.lang.ClassLoader.loadClass(Unknown Source) >>>> at java.lang.ClassLoader.loadClass(Unknown Source) >>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source) >>>> ... 4 more >>>> >>>> Suggestions? >>>> >>>> -Chip- >>>> _______________________________________________ >>>> Ibm-netrexx mailing list >>>> [hidden email] >>>> >>>> >>> >>> _______________________________________________ >>> Ibm-netrexx mailing list >>> [hidden email] >>> >>> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> >> >> > > ------------------------------------------------------------------------ > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > |
In reply to this post by Chip Davis-2
Hello Chip,
it *is* **certainly** true that you can compile NetRexx Files witout moving anything around.... That's actually what I'm doing since years (when not decades) ... When you like, I could look in detail into this (long time ago, sorry, I cannot recall it by brain) ... .. and all my PATH, CLASSPATH, etc entries and mail it to you.. I currently have NetRexx 2.02, and JRE 1.6, however, installed.... And it might well be that the tools.jar file of Java is no longer needed at all... I will have to check this, when you like.... Tom. ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) Chip Davis schrieb: > Thanks for the prompt reply, Tom. > > Yes, NetRexx 2.05 is the current distribution and what I attempted to > install. > > I did an exhaustive search of the entire drive and the only > "tools.jar" file on it is a Mozilla "hdrtools.jar" file used with Chrome. > > My best guess is that somewhere along the line my JDK was replaced > (probably by one of those too-smart automated downloads) with just the > JRE. > > I was not aware that the only way to get 'tools.jar' was via the JDK. > If true (and that is indeed my problem) then at the very least we need > to make a notation in the Users Guide and installation ReadMe. > > And while I'm asking, can anyone confirm that it is possible to > compile and run NetRexx apps without having to move any NetRexx files > into Java directories, but with appropriate entries in the PATH and > CLASSPATH environment variables? > > I don't want to have to move NetRexx files each time I get an updated > version of Java. > > -Chip- > > On 1/31/10 18:47 Thomas Schneider said: >> Hello Chip, >> the tools.jar file is in the ...\JRE\subdirectory. You probaly >> hand-moved it to your >> NetRexx directory, or moved NetRexx to the proper Java ... \JRE\... >> Directory. >> >> When you like, I could look up in detail in my NetRexx installation, >> but when you would like >> me to do, please send me a private mail to [hidden email]. >> >> I do NOT want to bother the group/REXXLA with all those details ... >> >> Kind regards, Tom. >> >> (PS: By the way, the CURRENT Rexx2Nrx.zip file on www.Rexx2Nrx.com >> SHOULD contain >> a valid copy of NetRexx as well ...) >> >> PPS: I did somewhere recognize a release version 2.05 of netRexx (I >> think from Kermit Kiser, >> or at the IBM home-pages, I am NOT sure), but as I am be off from >> ibm-netrexx >> for more than 2 years, I am NOT sure what the most recent version is. >> >> I'm still using NetRexx 2.02 without any problems, by the way. >> >> ============================================================= >> Chip Davis schrieb: >>> Various things have changed on my system since the last time I ran a >>> NetRexx >>> program and it had stopped working. Rather than try to figure out >>> what had >>> changed, I simply downloaded a fresh copy of the zip file from IBM. >>> Turns out >>> it was the same as the one I had, but I was unable to successfully >>> install it. >>> >>> It appears that some things have changed on the Java-front, not the >>> least of >>> which is that I do not seem to have a 'tools.jar' file. >>> >>> There is a daemon that periodically downloads the latest JRE for me, >>> and what I >>> have is C:\Program Files\Java\jre6\lib" (and \bin), reported to be >>> at the level >>> "Version 6 Update 15 (build 1.6.0_15-b03). >>> >>> I seem to recall that in the past I had the JDK installed as well, >>> but the >>> NetRexx installation instructions do not indicate that the >>> development kit is >>> necessary. >>> >>> I've tried moving the NetRexx files to the specified directories, >>> updating the >>> PATH and CLASSPATH, and any other variants I could think of, but I >>> still get: >>> >>> C:\Program Files\Java\jre6\bin>java COM.ibm.netrexx.process.NetRexxC >>> hello >>> NetRexx portable processor, version 2.05 >>> Copyright (c) IBM Corporation, 2005. All rights reserved. >>> Program hello.nrx >>> Exception in thread "main" java.lang.NoClassDefFoundError: >>> sun/tools/javac/Main >>> at >>> COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) >>> at COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) >>> at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) >>> at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) >>> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main >>> at java.net.URLClassLoader$1.run(Unknown Source) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at java.net.URLClassLoader.findClass(Unknown Source) >>> at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) >>> at java.lang.ClassLoader.loadClass(Unknown Source) >>> at java.lang.ClassLoader.loadClass(Unknown Source) >>> at java.lang.ClassLoader.loadClassInternal(Unknown Source) >>> ... 4 more >>> >>> Suggestions? >>> >>> -Chip- >>> _______________________________________________ >>> Ibm-netrexx mailing list >>> [hidden email] >>> >>> >> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> >> > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > >
Tom. (ths@db-123.com)
|
In reply to this post by Chip Davis-2
Whoops, Chip, Kermit,
that is really NEW for me as well. Great idea to update the README File where appropiate. Please send to me at [hidden email] when done, so that I could update www.rexx2Nrx.com doc's and behaviour as well... Thanks in advance, Tom. ======================================= Chip Davis schrieb: > Thanks Kermit! That's all I wanted to hear. > > I have found that the simpler the problem seems to be, the greater the > likelihood that I've misunderstood something. :-) I just wanted to > make sure that all I needed to do was install the JDK. > > Then maybe I'll take a crack at updating the installation ReadMe to > reflect the fact that SUN has changed (again) the directory naming > conventions, and to make explicit the option of not moving the .jar > files and the references to the JDK. If the JDK is truly optional, > the installation verification procedure (compiling hello.nrx) is not > really appropriate, imho. > > -Chip- > > On 1/31/10 20:27 Kermit Kiser said: >> Hi Chip ; >> >> The NetRexx user guide says that the JDK is required if you want to >> compile NetRexx programs with the SUN compiler. Note that the guide >> calls the JDK a "toolkit": >> >> Note that to run any of the samples, or use the NetRexx translator, >> you must have >> already installed the Java runtime (and toolkit, if you want to >> compile NetRexx programs >> using the default compiler). >> >> The section on using the translator as a compiler says this: >> >> The installation instructions for the NetRexx translator describe >> how to use the package >> to compile and run a simple NetRexx program (hello.nrx). When using >> the translator >> in this way (as a compiler), the translator parses and checks the >> NetRexx source code, >> and if no errors were found then generates Java source code. This >> Java code (which is >> known to be correct) is then compiled into bytecodes (.class files) >> using a Java compiler. >> By default, the javac compiler in the Java toolkit is used. >> >> >From the troubleshooting section: >> >> The compiler appears to work, but towards the end fails with >> Exception ... >> NoClassDefFoundError: sun/tools/javac/Main. This indicates that you >> are running Java >> 1.2 or later but did not add the Java tools to your CLASSPATH (hence >> Java could >> not find the javac compiler). See the Installing for Java 1.2+ >> section (see page 8) for >> more details, and an alternative action. >> >> You have only the Java runtime installed, and not the toolkit. If >> the toolkit is >> installed, you should have a program called javac on your computer. >> You can check >> whether javac is available and working by issuing the javac command >> at a command >> prompt; it should respond with usage information. >> >> I don't think you need the JDK if you use NetRexx as an interpreter. >> >> -- Kermit >> >> >> Chip Davis wrote: >>> Thanks for the prompt reply, Tom. >>> >>> Yes, NetRexx 2.05 is the current distribution and what I attempted >>> to install. >>> >>> I did an exhaustive search of the entire drive and the only >>> "tools.jar" file on it is a Mozilla "hdrtools.jar" file used with >>> Chrome. >>> >>> My best guess is that somewhere along the line my JDK was replaced >>> (probably by one of those too-smart automated downloads) with just >>> the JRE. >>> >>> I was not aware that the only way to get 'tools.jar' was via the >>> JDK. If true (and that is indeed my problem) then at the very least >>> we need to make a notation in the Users Guide and installation ReadMe. >>> >>> And while I'm asking, can anyone confirm that it is possible to >>> compile and run NetRexx apps without having to move any NetRexx >>> files into Java directories, but with appropriate entries in the >>> PATH and CLASSPATH environment variables? >>> >>> I don't want to have to move NetRexx files each time I get an >>> updated version of Java. >>> >>> -Chip- >>> >>> On 1/31/10 18:47 Thomas Schneider said: >>>> Hello Chip, >>>> the tools.jar file is in the ...\JRE\subdirectory. You probaly >>>> hand-moved it to your >>>> NetRexx directory, or moved NetRexx to the proper Java ... \JRE\... >>>> Directory. >>>> >>>> When you like, I could look up in detail in my NetRexx >>>> installation, but when you would like >>>> me to do, please send me a private mail to [hidden email]. >>>> >>>> I do NOT want to bother the group/REXXLA with all those details ... >>>> >>>> Kind regards, Tom. >>>> >>>> (PS: By the way, the CURRENT Rexx2Nrx.zip file on www.Rexx2Nrx.com >>>> SHOULD contain >>>> a valid copy of NetRexx as well ...) >>>> >>>> PPS: I did somewhere recognize a release version 2.05 of netRexx (I >>>> think from Kermit Kiser, >>>> or at the IBM home-pages, I am NOT sure), but as I am be off from >>>> ibm-netrexx >>>> for more than 2 years, I am NOT sure what the most recent version is. >>>> >>>> I'm still using NetRexx 2.02 without any problems, by the way. >>>> >>>> ============================================================= >>>> Chip Davis schrieb: >>>>> Various things have changed on my system since the last time I ran >>>>> a NetRexx >>>>> program and it had stopped working. Rather than try to figure out >>>>> what had >>>>> changed, I simply downloaded a fresh copy of the zip file from >>>>> IBM. Turns out >>>>> it was the same as the one I had, but I was unable to successfully >>>>> install it. >>>>> >>>>> It appears that some things have changed on the Java-front, not >>>>> the least of >>>>> which is that I do not seem to have a 'tools.jar' file. >>>>> >>>>> There is a daemon that periodically downloads the latest JRE for >>>>> me, and what I >>>>> have is C:\Program Files\Java\jre6\lib" (and \bin), reported to be >>>>> at the level >>>>> "Version 6 Update 15 (build 1.6.0_15-b03). >>>>> >>>>> I seem to recall that in the past I had the JDK installed as well, >>>>> but the >>>>> NetRexx installation instructions do not indicate that the >>>>> development kit is >>>>> necessary. >>>>> >>>>> I've tried moving the NetRexx files to the specified directories, >>>>> updating the >>>>> PATH and CLASSPATH, and any other variants I could think of, but I >>>>> still get: >>>>> >>>>> C:\Program Files\Java\jre6\bin>java >>>>> COM.ibm.netrexx.process.NetRexxC hello >>>>> NetRexx portable processor, version 2.05 >>>>> Copyright (c) IBM Corporation, 2005. All rights reserved. >>>>> Program hello.nrx >>>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>>> sun/tools/javac/Main >>>>> at >>>>> COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) >>>>> at COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) >>>>> at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) >>>>> at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) >>>>> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main >>>>> at java.net.URLClassLoader$1.run(Unknown Source) >>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>> at java.net.URLClassLoader.findClass(Unknown Source) >>>>> at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) >>>>> at java.lang.ClassLoader.loadClass(Unknown Source) >>>>> at java.lang.ClassLoader.loadClass(Unknown Source) >>>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source) >>>>> ... 4 more >>>>> >>>>> Suggestions? >>>>> >>>>> -Chip- >>>>> _______________________________________________ >>>>> Ibm-netrexx mailing list >>>>> [hidden email] >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Ibm-netrexx mailing list >>>> [hidden email] >>>> >>>> >>> _______________________________________________ >>> Ibm-netrexx mailing list >>> [hidden email] >>> >>> >>> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > >
Tom. (ths@db-123.com)
|
Hello,
The JDK (as opposed to the JRE) is optional in the case where you want to simply run your java application (.class) files. To run a java .class file, all that is required is the JRE (runtime) and any other required 3rd-party java classes called from your application. For most NetRexx applications that are using the Rexx class, you would then need to include the Rexx java classes in your processe's CLASSPATH environment variable, so java has access to them. On the other hand, the process of converting NetRexx source into java class ultimately requires the javac compiler which is only available in the JDK (Java Development Kit) versions of Java The Unix scripts used as a front-end to the Netrexx compile process might need to be modified in the case where Java libraries are located in a different location than originally coded for in the script. This would likely include both your PATH, CLASSPATH variables. I hope that helps clarify some of the confusion... -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Thomas Schneider Sent: Sunday, January 31, 2010 6:52 PM To: IBM Netrexx Subject: Re: [Ibm-netrexx] Installation woes... Whoops, Chip, Kermit, that is really NEW for me as well. Great idea to update the README File where appropiate. Please send to me at [hidden email] when done, so that I could update www.rexx2Nrx.com doc's and behaviour as well... Thanks in advance, Tom. ======================================= Chip Davis schrieb: > Thanks Kermit! That's all I wanted to hear. > > I have found that the simpler the problem seems to be, the greater the > likelihood that I've misunderstood something. :-) I just wanted to > make sure that all I needed to do was install the JDK. > > Then maybe I'll take a crack at updating the installation ReadMe to > reflect the fact that SUN has changed (again) the directory naming > conventions, and to make explicit the option of not moving the .jar > files and the references to the JDK. If the JDK is truly optional, > the installation verification procedure (compiling hello.nrx) is not > really appropriate, imho. > > -Chip- > > On 1/31/10 20:27 Kermit Kiser said: >> Hi Chip ; >> >> The NetRexx user guide says that the JDK is required if you want to >> compile NetRexx programs with the SUN compiler. Note that the guide >> calls the JDK a "toolkit": >> >> Note that to run any of the samples, or use the NetRexx >> you must have >> already installed the Java runtime (and toolkit, if you want to >> compile NetRexx programs >> using the default compiler). >> >> The section on using the translator as a compiler says this: >> >> The installation instructions for the NetRexx translator describe >> how to use the package >> to compile and run a simple NetRexx program (hello.nrx). When >> the translator >> in this way (as a compiler), the translator parses and checks the >> NetRexx source code, >> and if no errors were found then generates Java source code. This >> Java code (which is >> known to be correct) is then compiled into bytecodes (.class files) >> using a Java compiler. >> By default, the javac compiler in the Java toolkit is used. >> >> >From the troubleshooting section: >> >> The compiler appears to work, but towards the end fails with >> Exception ... >> NoClassDefFoundError: sun/tools/javac/Main. This indicates that you >> are running Java >> 1.2 or later but did not add the Java tools to your CLASSPATH (hence >> Java could >> not find the javac compiler). See the Installing for Java 1.2+ >> section (see page 8) for >> more details, and an alternative action. >> >> You have only the Java runtime installed, and not the toolkit. If >> the toolkit is >> installed, you should have a program called javac on your computer. >> You can check >> whether javac is available and working by issuing the javac command >> at a command >> prompt; it should respond with usage information. >> >> I don't think you need the JDK if you use NetRexx as an interpreter. >> >> -- Kermit >> >> >> Chip Davis wrote: >>> Thanks for the prompt reply, Tom. >>> >>> Yes, NetRexx 2.05 is the current distribution and what I attempted >>> to install. >>> >>> I did an exhaustive search of the entire drive and the only >>> "tools.jar" file on it is a Mozilla "hdrtools.jar" file used with >>> Chrome. >>> >>> My best guess is that somewhere along the line my JDK was replaced >>> (probably by one of those too-smart automated downloads) with just >>> the JRE. >>> >>> I was not aware that the only way to get 'tools.jar' was via the >>> JDK. If true (and that is indeed my problem) then at the very least >>> we need to make a notation in the Users Guide and installation ReadMe. >>> >>> And while I'm asking, can anyone confirm that it is possible to >>> compile and run NetRexx apps without having to move any NetRexx >>> files into Java directories, but with appropriate entries in the >>> PATH and CLASSPATH environment variables? >>> >>> I don't want to have to move NetRexx files each time I get an >>> updated version of Java. >>> >>> -Chip- >>> >>> On 1/31/10 18:47 Thomas Schneider said: >>>> Hello Chip, >>>> the tools.jar file is in the ...\JRE\subdirectory. You probaly >>>> hand-moved it to your >>>> NetRexx directory, or moved NetRexx to the proper Java ... \JRE\... >>>> Directory. >>>> >>>> When you like, I could look up in detail in my NetRexx >>>> installation, but when you would like >>>> me to do, please send me a private mail to [hidden email]. >>>> >>>> I do NOT want to bother the group/REXXLA with all those details ... >>>> >>>> Kind regards, Tom. >>>> >>>> (PS: By the way, the CURRENT Rexx2Nrx.zip file on www.Rexx2Nrx.com >>>> SHOULD contain >>>> a valid copy of NetRexx as well ...) >>>> >>>> PPS: I did somewhere recognize a release version 2.05 of netRexx (I >>>> think from Kermit Kiser, >>>> or at the IBM home-pages, I am NOT sure), but as I am be off from >>>> ibm-netrexx >>>> for more than 2 years, I am NOT sure what the most recent version is. >>>> >>>> I'm still using NetRexx 2.02 without any problems, by the way. >>>> >>>> ============================================================= >>>> Chip Davis schrieb: >>>>> Various things have changed on my system since the last time I ran >>>>> a NetRexx >>>>> program and it had stopped working. Rather than try to figure out >>>>> what had >>>>> changed, I simply downloaded a fresh copy of the zip file from >>>>> IBM. Turns out >>>>> it was the same as the one I had, but I was unable to successfully >>>>> install it. >>>>> >>>>> It appears that some things have changed on the Java-front, not >>>>> the least of >>>>> which is that I do not seem to have a 'tools.jar' file. >>>>> >>>>> There is a daemon that periodically downloads the latest JRE for >>>>> me, and what I >>>>> have is C:\Program Files\Java\jre6\lib" (and \bin), reported to be >>>>> at the level >>>>> "Version 6 Update 15 (build 1.6.0_15-b03). >>>>> >>>>> I seem to recall that in the past I had the JDK installed as well, >>>>> but the >>>>> NetRexx installation instructions do not indicate that the >>>>> development kit is >>>>> necessary. >>>>> >>>>> I've tried moving the NetRexx files to the specified directories, >>>>> updating the >>>>> PATH and CLASSPATH, and any other variants I could think of, but I >>>>> still get: >>>>> >>>>> C:\Program Files\Java\jre6\bin>java >>>>> COM.ibm.netrexx.process.NetRexxC hello >>>>> NetRexx portable processor, version 2.05 >>>>> Copyright (c) IBM Corporation, 2005. All rights reserved. >>>>> Program hello.nrx >>>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>>> sun/tools/javac/Main >>>>> at >>>>> COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) >>>>> at >>>>> at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) >>>>> at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) >>>>> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main >>>>> at java.net.URLClassLoader$1.run(Unknown Source) >>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>> at java.net.URLClassLoader.findClass(Unknown Source) >>>>> at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) >>>>> at java.lang.ClassLoader.loadClass(Unknown Source) >>>>> at java.lang.ClassLoader.loadClass(Unknown Source) >>>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source) >>>>> ... 4 more >>>>> >>>>> Suggestions? >>>>> >>>>> -Chip- >>>>> _______________________________________________ >>>>> Ibm-netrexx mailing list >>>>> [hidden email] >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Ibm-netrexx mailing list >>>> [hidden email] >>>> >>>> >>> _______________________________________________ >>> Ibm-netrexx mailing list >>> [hidden email] >>> >>> >>> >> >> >> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > > _______________________________________________ Ibm-netrexx mailing list [hidden email] *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. **************************************************************************** |
Thanks, Peter. I may quote some of that when I update the NetRexx installation
README. :-) -Chip- On 2/1/10 14:43 Rupp Peter - prupp said: > Hello, > > The JDK (as opposed to the JRE) is optional in the case where you want > to simply run your java application (.class) files. To run a java > .class file, all that is required is the JRE (runtime) and any other > required 3rd-party java classes called from your application. For most > NetRexx applications that are using the Rexx class, you would then need > to include the Rexx java classes in your processe's CLASSPATH > environment variable, so java has access to them. > > On the other hand, the process of converting NetRexx source into java > class ultimately requires the javac compiler which is only available in > the JDK (Java Development Kit) versions of Java > > The Unix scripts used as a front-end to the Netrexx compile process > might need to be modified in the case where Java libraries are located > in a different location than originally coded for in the script. This > would likely include both your PATH, CLASSPATH variables. > > I hope that helps clarify some of the confusion... > > > > > > > -----Original Message----- > From: [hidden email] > [mailto:[hidden email]] On Behalf Of Thomas > Schneider > Sent: Sunday, January 31, 2010 6:52 PM > To: IBM Netrexx > Subject: Re: [Ibm-netrexx] Installation woes... > > Whoops, Chip, Kermit, > > that is really NEW for me as well. > > Great idea to update the README File where appropiate. > > Please send to me at [hidden email] when done, so that I could update > www.rexx2Nrx.com doc's and behaviour as well... > > Thanks in advance, > Tom. > ======================================= > Chip Davis schrieb: >> Thanks Kermit! That's all I wanted to hear. >> >> I have found that the simpler the problem seems to be, the greater the > >> likelihood that I've misunderstood something. :-) I just wanted to >> make sure that all I needed to do was install the JDK. >> >> Then maybe I'll take a crack at updating the installation ReadMe to >> reflect the fact that SUN has changed (again) the directory naming >> conventions, and to make explicit the option of not moving the .jar >> files and the references to the JDK. If the JDK is truly optional, >> the installation verification procedure (compiling hello.nrx) is not >> really appropriate, imho. >> >> -Chip- >> >> On 1/31/10 20:27 Kermit Kiser said: >>> Hi Chip ; >>> >>> The NetRexx user guide says that the JDK is required if you want to >>> compile NetRexx programs with the SUN compiler. Note that the guide >>> calls the JDK a "toolkit": >>> >>> Note that to run any of the samples, or use the NetRexx > translator, >>> you must have >>> already installed the Java runtime (and toolkit, if you want to >>> compile NetRexx programs >>> using the default compiler). >>> >>> The section on using the translator as a compiler says this: >>> >>> The installation instructions for the NetRexx translator describe >>> how to use the package >>> to compile and run a simple NetRexx program (hello.nrx). When > using >>> the translator >>> in this way (as a compiler), the translator parses and checks the >>> NetRexx source code, >>> and if no errors were found then generates Java source code. This >>> Java code (which is >>> known to be correct) is then compiled into bytecodes (.class > files) >>> using a Java compiler. >>> By default, the javac compiler in the Java toolkit is used. >>> >>> >From the troubleshooting section: >>> >>> The compiler appears to work, but towards the end fails with >>> Exception ... >>> NoClassDefFoundError: sun/tools/javac/Main. This indicates that > you >>> are running Java >>> 1.2 or later but did not add the Java tools to your CLASSPATH > (hence >>> Java could >>> not find the javac compiler). See the Installing for Java 1.2+ >>> section (see page 8) for >>> more details, and an alternative action. >>> >>> You have only the Java runtime installed, and not the toolkit. If >>> the toolkit is >>> installed, you should have a program called javac on your > computer. >>> You can check >>> whether javac is available and working by issuing the javac > command >>> at a command >>> prompt; it should respond with usage information. >>> >>> I don't think you need the JDK if you use NetRexx as an interpreter. >>> >>> -- Kermit >>> >>> >>> Chip Davis wrote: >>>> Thanks for the prompt reply, Tom. >>>> >>>> Yes, NetRexx 2.05 is the current distribution and what I attempted >>>> to install. >>>> >>>> I did an exhaustive search of the entire drive and the only >>>> "tools.jar" file on it is a Mozilla "hdrtools.jar" file used with >>>> Chrome. >>>> >>>> My best guess is that somewhere along the line my JDK was replaced >>>> (probably by one of those too-smart automated downloads) with just >>>> the JRE. >>>> >>>> I was not aware that the only way to get 'tools.jar' was via the >>>> JDK. If true (and that is indeed my problem) then at the very least > >>>> we need to make a notation in the Users Guide and installation > ReadMe. >>>> And while I'm asking, can anyone confirm that it is possible to >>>> compile and run NetRexx apps without having to move any NetRexx >>>> files into Java directories, but with appropriate entries in the >>>> PATH and CLASSPATH environment variables? >>>> >>>> I don't want to have to move NetRexx files each time I get an >>>> updated version of Java. >>>> >>>> -Chip- >>>> >>>> On 1/31/10 18:47 Thomas Schneider said: >>>>> Hello Chip, >>>>> the tools.jar file is in the ...\JRE\subdirectory. You probaly >>>>> hand-moved it to your >>>>> NetRexx directory, or moved NetRexx to the proper Java ... \JRE\... > >>>>> Directory. >>>>> >>>>> When you like, I could look up in detail in my NetRexx >>>>> installation, but when you would like >>>>> me to do, please send me a private mail to [hidden email]. >>>>> >>>>> I do NOT want to bother the group/REXXLA with all those details ... >>>>> >>>>> Kind regards, Tom. >>>>> >>>>> (PS: By the way, the CURRENT Rexx2Nrx.zip file on www.Rexx2Nrx.com >>>>> SHOULD contain >>>>> a valid copy of NetRexx as well ...) >>>>> >>>>> PPS: I did somewhere recognize a release version 2.05 of netRexx (I > >>>>> think from Kermit Kiser, >>>>> or at the IBM home-pages, I am NOT sure), but as I am be off from >>>>> ibm-netrexx >>>>> for more than 2 years, I am NOT sure what the most recent version > is. >>>>> I'm still using NetRexx 2.02 without any problems, by the way. >>>>> >>>>> ============================================================= >>>>> Chip Davis schrieb: >>>>>> Various things have changed on my system since the last time I ran > >>>>>> a NetRexx >>>>>> program and it had stopped working. Rather than try to figure out > >>>>>> what had >>>>>> changed, I simply downloaded a fresh copy of the zip file from >>>>>> IBM. Turns out >>>>>> it was the same as the one I had, but I was unable to successfully > >>>>>> install it. >>>>>> >>>>>> It appears that some things have changed on the Java-front, not >>>>>> the least of >>>>>> which is that I do not seem to have a 'tools.jar' file. >>>>>> >>>>>> There is a daemon that periodically downloads the latest JRE for >>>>>> me, and what I >>>>>> have is C:\Program Files\Java\jre6\lib" (and \bin), reported to be > >>>>>> at the level >>>>>> "Version 6 Update 15 (build 1.6.0_15-b03). >>>>>> >>>>>> I seem to recall that in the past I had the JDK installed as well, > >>>>>> but the >>>>>> NetRexx installation instructions do not indicate that the >>>>>> development kit is >>>>>> necessary. >>>>>> >>>>>> I've tried moving the NetRexx files to the specified directories, >>>>>> updating the >>>>>> PATH and CLASSPATH, and any other variants I could think of, but I > >>>>>> still get: >>>>>> >>>>>> C:\Program Files\Java\jre6\bin>java >>>>>> COM.ibm.netrexx.process.NetRexxC hello >>>>>> NetRexx portable processor, version 2.05 >>>>>> Copyright (c) IBM Corporation, 2005. All rights reserved. >>>>>> Program hello.nrx >>>>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>>>> sun/tools/javac/Main >>>>>> at >>>>>> COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) >>>>>> at > COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) >>>>>> at > COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) >>>>>> at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) >>>>>> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main >>>>>> at java.net.URLClassLoader$1.run(Unknown Source) >>>>>> at java.security.AccessController.doPrivileged(Native > Method) >>>>>> at java.net.URLClassLoader.findClass(Unknown Source) >>>>>> at sun.misc.Launcher$ExtClassLoader.findClass(Unknown > Source) >>>>>> at java.lang.ClassLoader.loadClass(Unknown Source) >>>>>> at java.lang.ClassLoader.loadClass(Unknown Source) >>>>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source) >>>>>> ... 4 more >>>>>> >>>>>> Suggestions? >>>>>> >>>>>> -Chip- >>>>>> _______________________________________________ >>>>>> Ibm-netrexx mailing list >>>>>> [hidden email] >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> Ibm-netrexx mailing list >>>>> [hidden email] >>>>> >>>>> >>>> _______________________________________________ >>>> Ibm-netrexx mailing list >>>> [hidden email] >>>> >>>> >>>> >>> > ------------------------------------------------------------------------ >>> _______________________________________________ >>> Ibm-netrexx mailing list >>> [hidden email] >>> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> >> > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > > *************************************************************************** > The information contained in this communication is confidential, is > intended only for the use of the recipient named above, and may be legally > privileged. > > If the reader of this message is not the intended recipient, you are > hereby notified that any dissemination, distribution or copying of this > communication is strictly prohibited. > > If you have received this communication in error, please resend this > communication to the sender and delete the original message or any copy > of it from your computer system. > > Thank You. > **************************************************************************** > > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > > |
Free forum by Nabble | Edit this page |