I've been forced from my previous OS to Caldera Open Linux 2.3 and I'm running into some teething difficulties... :') I am working with the new JDK from Sun for Linux, SDK 1.2.2. After exporting the necessary paths and atempting to compile a few old netrexx scripts, I have run into this... First, the 1.151 NetRexx compiler will not execute from the jar file. I had to unzip it before it would be recognized. YES, I do have /usr/netrexx/lib/NetRexxC.zip in the PATH... Second, using -verbose5 at the command line it shows the translator works 100%, but the call to the java compiler fails. The error's read: NetRexx portable processor, version 1.151 [3 Sep 1999] Copyright (c) IBM Corporation, 1999. All rights reserved. Translating 'ReadFile.nrx' [Pass 0] Loading class 'java.lang.Object'... Loaded public final class 'java.lang.String' (Visible: 60 methods, one property) --- snip of non-error compiler report --- Compiling: '-nowarn -classpath .:/usr/jdk1.2.2/jre/lib/rt.jar:/usr/jdk1.2.2/lib/tools.jar /usr/netrexx/ReadFile.java' Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:425) at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:389) at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165) at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:54) At this point, I can run "javac ReadFile.java" and it compiles and runs just fine. Shouldn't the path to the netrexx.zip file be in the classpath of the call to the java compiler? Any tips would be appreciated. :') ******************************************************************************* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
Java 1.2 needs the .jar file for the javac compiler to be in the classpath, as it is no longer part of the Java 'core'; see the NetRexx 'installation documentation' for details. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mike Cowlishaw, IBM Fellow mailto:[hidden email] -- http://www2.hursley.ibm.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
In reply to this post by mcbrides
In the readme/doco somewhere it says that if you're running 1.2 or higher, you need to put tools.jar in your classpath as well.... -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au Play: http://www.trongus.com I've just returned from THE Java Programming Conference, http://www.SoftwareSummit.com - be there next year
I've been forced from my previous OS to Caldera Open Linux 2.3 and I'm running into some teething difficulties... :') I am working with the new JDK from Sun for Linux, SDK 1.2.2. After exporting the necessary paths and atempting to compile a few old netrexx scripts, I have run into this... First, the 1.151 NetRexx compiler will not execute from the jar file. I had to unzip it before it would be recognized. YES, I do have /usr/netrexx/lib/NetRexxC.zip in the PATH... Second, using -verbose5 at the command line it shows the translator works 100%, but the call to the java compiler fails. The error's read: NetRexx portable processor, version 1.151 [3 Sep 1999] Copyright (c) IBM Corporation, 1999. All rights reserved. Translating 'ReadFile.nrx' [Pass 0] Loading class 'java.lang.Object'... Loaded public final class 'java.lang.String' (Visible: 60 methods, one property) --- snip of non-error compiler report --- Compiling: '-nowarn -classpath .:/usr/jdk1.2.2/jre/lib/rt.jar:/usr/jdk1.2.2/lib/tools.jar /usr/netrexx/ReadFile.java' Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:425) at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:389) at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165) at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:54) At this point, I can run "javac ReadFile.java" and it compiles and runs just fine. Shouldn't the path to the netrexx.zip file be in the classpath of the call to the java compiler? Any tips would be appreciated. :') ******************************************************************************* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
In reply to this post by mcbrides
** Reply to message from [hidden email] on Tue, 28 Dec 1999 08:49:14 +0000
> Java 1.2 needs the .jar file for the javac compiler to be in the classpath, as > it is no longer part of the Java 'core'; see the NetRexx 'installation > documentation' for details. > If you mean tools.jar, it's in the path. Still no joy. You can see the path in the netrexxc.log below: NetRexx portable processor, version 1.151 [3 Sep 1999] Copyright (c) IBM Corporation, 1999. All rights reserved. Translating 'ReadFile.nrx' [Pass 0] Loading class 'java.lang.Object'... --- snip verbose output of comopiler -- Compiling: '-nowarn -classpath .:/usr/jdk1.2.2/jre/lib/rt.jar:/usr/jdk1.2.2/lib/tools.jar /usr/netrexx/ReadFile.java' Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:425) at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:389) at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165) at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:54) I've tried all manner of "fixes". I even resorted to unzip all the .JAR files and set the various PATH's accordingly... I get the same exact results each time.... I can't be this dense! :') * The onramp to the Internet * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
In reply to this post by mcbrides
** Reply to message from [hidden email] on Tue, 28 Dec 1999 14:18:11 GMT
> In the readme/doco somewhere it says that if you're running 1.2 or higher, > you need to put tools.jar in your classpath as well.... > I did... | From the Warp Server for eBusiness desktop of: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
In reply to this post by mcbrides
** Reply to message from [hidden email] on Tue, 28 Dec 1999 08:49:14 +0000
> Java 1.2 needs the .jar file for the javac compiler to be in the classpath, as > it is no longer part of the Java 'core'; see the NetRexx 'installation > documentation' for details. > Ok... I got it fixed and it's not what I expected... By including "-classpath /usr/jdk1.2.2/lib.tools.jar" on the command line, it works. Setting this in either the PATH or CLASSPATH environment variables does not... So far, things are back to normal. ******************************************************************************* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
In reply to this post by mcbrides
On Tue, 28 Dec 1999, you wrote:
Hi, I have been using the other alternative for linux. There is also a port from blackdown.org. These guys have been working on 1.2.2 and other java stuff from Sun for years. Sun and Imprise 'reused' much of their work to get a Sun 1.2.2 out... Not sure which one is better but know that the blackdown.org's 1.2.2rc3 passes all my njPipe tests. If Sun's gives problems try blackdown's. Note IBM's 1.1.8 does not pass these tests. Sun has been doing some very stupid stuff with Java lately. This is bad since java in linux is not very popular. Would have been very nice if Sun had credited blackdown.org for all their work (including getting 1.2.x on platforms Sun does not want to support). If Sun acted like many of the linux vendors out there they would be paying blackdown.org to work on java. Happy New Year Ed > I've been forced from my previous OS to Caldera Open Linux 2.3 and I'm running > into some teething difficulties... :') > > I am working with the new JDK from Sun for Linux, SDK 1.2.2. After exporting > the necessary paths and atempting to compile a few old netrexx scripts, I have > run into this... > > First, the 1.151 NetRexx compiler will not execute from the jar file. I had to > unzip it before it would be recognized. YES, I do have > /usr/netrexx/lib/NetRexxC.zip in the PATH... Second, using -verbose5 at the > command line it shows the translator works 100%, but the call to the java > compiler fails. The error's read: > > NetRexx portable processor, version 1.151 [3 Sep 1999] > Copyright (c) IBM Corporation, 1999. All rights reserved. > Translating 'ReadFile.nrx' [Pass 0] > Loading class 'java.lang.Object'... > > Loaded public final class 'java.lang.String' (Visible: 60 methods, one > property) > > --- snip of non-error compiler report --- > > Compiling: '-nowarn -classpath > .:/usr/jdk1.2.2/jre/lib/rt.jar:/usr/jdk1.2.2/lib/tools.jar > //usr/netrexx/ReadFile.java' > Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main > at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:425) > at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:389) > at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165) > at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:54) > > At this point, I can run "javac ReadFile.java" and it compiles and runs just > fine. Shouldn't the path to the netrexx.zip file be in the classpath of the call > to the java compiler? > > Any tips would be appreciated. :') > > ******************************************************************************* > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to > [hidden email] > with the following message in the body of the note > unsubscribe ibm-netrexx <e-mail address> Ed Tomlinson <[hidden email]> http://www.cam.org/~tomlins/njpipes.html ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
In reply to this post by mcbrides
Ed, the lack of credit was a temporary idiocy that Sun soon corrected. There online articles all got updated identifying Blackdown as the source of the port (from 1.2.1), don't know if there was an update of doco though... -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au Play: http://www.trongus.com I've just returned from THE Java Programming Conference, http://www.SoftwareSummit.com - be there next year On Tue, 28 Dec 1999, you wrote: Hi, I have been using the other alternative for linux. There is also a port from blackdown.org. These guys have been working on 1.2.2 and other java stuff from Sun for years. Sun and Imprise 'reused' much of their work to get a Sun 1.2.2 out... Not sure which one is better but know that the blackdown.org's 1.2.2rc3 passes all my njPipe tests. If Sun's gives problems try blackdown's. Note IBM's 1.1.8 does not pass these tests. Sun has been doing some very stupid stuff with Java lately. This is bad since java in linux is not very popular. Would have been very nice if Sun had credited blackdown.org for all their work (including getting 1.2.x on platforms Sun does not want to support). If Sun acted like many of the linux vendors out there they would be paying blackdown.org to work on java. Happy New Year Ed > I've been forced from my previous OS to Caldera Open Linux 2.3 and I'm running > into some teething difficulties... :') > > I am working with the new JDK from Sun for Linux, SDK 1.2.2. After exporting > the necessary paths and atempting to compile a few old netrexx scripts, I have > run into this... > > First, the 1.151 NetRexx compiler will not execute from the jar file. I had to > unzip it before it would be recognized. YES, I do have > /usr/netrexx/lib/NetRexxC.zip in the PATH... Second, using -verbose5 at the > command line it shows the translator works 100%, but the call to the java > compiler fails. The error's read: > > NetRexx portable processor, version 1.151 [3 Sep 1999] > Copyright (c) IBM Corporation, 1999. All rights reserved. > Translating 'ReadFile.nrx' [Pass 0] > Loading class 'java.lang.Object'... > > Loaded public final class 'java.lang.String' (Visible: 60 methods, one > property) > > --- snip of non-error compiler report --- > > Compiling: '-nowarn -classpath > .:/usr/jdk1.2.2/jre/lib/rt.jar:/usr/jdk1.2.2/lib/tools.jar > //usr/netrexx/ReadFile.java' > Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main > at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:425) > at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:389) > at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165) > at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:54) > > At this point, I can run "javac ReadFile.java" and it compiles and runs just > fine. Shouldn't the path to the netrexx.zip file be in the classpath of the call > to the java compiler? > > Any tips would be appreciated. :') > > ******************************************************************************* > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to > [hidden email] > with the following message in the body of the note > unsubscribe ibm-netrexx <e-mail address> -- Ed Tomlinson <[hidden email]> http://www.cam.org/~tomlins/njpipes.html ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
Free forum by Nabble | Edit this page |