I have installed java SDK 1.4.2, 1.4.1 & 1.3.1, plus NetRexx 2.02 on Win2k. I ran java demos successfully (eg. bigdecimal in v1.3.1 runs fine under 1.4.2), but NetRexx hello sample fails in each version (I started with 1.4.2 & worked back through older versions to see if I might've had a NetRexx/new-java incompatibility). I've gone over install doco several times, NetRexxC.jar is in java's jre\lib\ext (all versions). Sample output is here (notice that 1.3.1 error is slightly different): C:\Program Files\NetRexx\bin>java COM.ibm.netrexx.process.NetRexxC hello NetRexx portable processor, version 2.02 Copyright (c) IBM Corporation, 2001. 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) C:\Program Files\NetRexx\bin>java -version java version "1.3.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1) Classic VM (build 1.3.1, J2RE 1.3.1 IBM Windows 32 build cn131-20041210 (JIT ena bled: jitc)) ============================================================= C:\Program Files\NetRexx\bin>java COM.ibm.netrexx.process.NetRexxC hello NetRexx portable processor, version 2.02 Copyright (c) IBM Corporation, 2001. All rights reserved. Program hello.nrx +++ Error: The class 'java.lang.Object' cannot be found Compilation of 'hello.nrx' failed [one error] C:\Program Files\NetRexx\bin>java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1) Classic VM (build 1.4.1, J2RE 1.4.1 IBM Windows 32 build cn1411-20040301a (JIT e nabled: jitc)) ============================================================= C:\Program Files\NetRexx\bin>java COM.ibm.netrexx.process.NetRexxC hello NetRexx portable processor, version 2.02 Copyright (c) IBM Corporation, 2001. All rights reserved. Program hello.nrx +++ Error: The class 'java.lang.Object' cannot be found Compilation of 'hello.nrx' failed [one error] C:\Program Files\NetRexx\bin>java -version java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build cn142ifx-20041203 (142S R1+80507) (JIT enabled: jitc)) ============================================================= C:\Program Files\IBM\Java131\demo\bigdecimal>java decdemo 0.9 0.9 0.09 0.089999996 0.009 0.0090 0.0009 9.0E-4 0.00009 9.0E-5 0.000009 9.0E-6 9E-7 9.0000003E-7 9E-8 9.0E-8 9E-9 9.0E-9 9E-10 8.9999996E-10 C:\Program Files\IBM\Java131\demo\bigdecimal>java -version java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build cn142ifx-20041203 (142S R1+80507) (JIT enabled: jitc)) and here's some output of SET giving envvar contents: CLASSPATH=C:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\WebSpher e MQ\Java\lib\ldap.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar;C:\Pro gram Files\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files\IBM\WebSphere MQ\ Java\lib\jms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar;C:\Pro gram Files\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program Files\IBM\WebSpher e MQ\Java\lib\com.ibm.mq.jar;.;C:\Program Files\SQLLIB\java\db2java.zip;C:\Progr am Files\SQLLIB\java\runtime.zip;C:\Program Files\SQLLIB\bin;C:\PROGRA~1\IBM\Jav a142\lib\dt.jar;C:\PROGRA~1\IBM\Java142\lib\tools.jar JAVA_HOME=C:\PROGRA~1\IBM\Java142 lib=C:\Program Files\IBM\WebSphere MQ\tools\lib;C:\Program Files\ObjREXX\API;C:\ PROGRA~1\IBM\WEBSPH~1.1\lib;C:\PROGRA~1\IBM\Java142\lib;C:\PROGRA~1\IBM\Java142\ jre\lib Path=C:\Progra~1\IBM\WebSph~1.1\nnsy\gui;C:\Progra~1\IBM\WebSph~1.1\nnsy\bin;C:\ PROGRA~1\IBM\Java142\bin;C:\PROGRA~1\IBM\Java142\jre\bin;C:\PROGRA~1\IBM\Java142 \lib;C:\PROGRA~1\IBM\Java142\jre\lib;C:\Progra~1\IBM\WebSph~1\Java\lib;C:\WINNT\ system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Progra~1\IBM\TraceF~1;C:\Progra~1\Pe rson~1;C:\Notes;C:\Utilities;C:\PROGRA~1\THINKPAD\UTILITIES;C:\Progra~1\IBM\WebS ph~1\bin;C:\Progra~1\IBM\WebSph~1\tools\c\samples\bin;C:\Progra~1\ObjREXX;C:\Pro gra~1\ObjREXX\OODIALOG;C:\Progra~1\nastel\mqcx\bin;C:\WINNT\System32;C:\;C:\Prog ra~1\IBM\Director\bin;C:\Progra~1\SQLLIB\BIN;C:\Progra~1\SQLLIB\FUNCTION;C:\Prog ra~1\SQLLIB\SAMPLES\REPL;C:\Progra~1\SQLLIB\HELP;C:\PROGRA~1\IBM\IMNNQ;C:\Progra ~1\IBM\WebSph~1.1\bin;c:\PROGRA~1\procexpnt;.;c:\PROGRA~1\NetRexx\bin;c:\DJGPP\B IN; Any clues and assistance most welcome. Peter Sharp Ballarat Australia ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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> |
This is due to the IBM 1.4 JVM having renamed rt.jar
NetRexx 2.05 reads *all* jars in the library, so is a little bit slower starting up, but works around this problem. (Or you can copy core.jar, etc. to ...\lib\ext.) NetRexx 2.05 can be downloaded at: http://www-306.ibm.com/software/awdtools/netrexx/nrdown.html Mike - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mike Cowlishaw, IBM Fellow IBM UK (MP5), PO Box 31, Birmingham Road, Warwick, CV34 5JL mailto:[hidden email] -- http://www2.hursley.ibm.com/decimal ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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> |
Thanks, NetRexx 2.05 gets around the java.lang.Object not found error. Now I get the same error in 1.4.2 that I reported in 1.3.1: ================================================================== C:\Program Files\NetRexx\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) C:\Program Files\NetRexx\bin>java -version java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build cn142ifx-20041203 (142S R1+80507) (JIT enabled: jitc)) ================================================================== What's missing? Regards, Peter Sharp MQSeries Specialist Middleware Support IBM Ballarat Australia office: 61-3-5327-3175 mobile: 61-413-276-282 fax: 61-3-5327-3297 e-mail: [hidden email] Mike said: This is due to the IBM 1.4 JVM having renamed rt.jar NetRexx 2.05 reads *all* jars in the library, so is a little bit slower starting up, but works around this problem. (Or you can copy core.jar, etc. to ...\lib\ext.) NetRexx 2.05 can be downloaded at: http://www-306.ibm.com/software/awdtools/netrexx/nrdown.html Mike - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mike Cowlishaw, IBM Fellow IBM UK (MP5), PO Box 31, Birmingham Road, Warwick, CV34 5JL mailto:[hidden email] -- http://www2.hursley.ibm.com/decimal ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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> |
> Thanks, NetRexx 2.05 gets around the java.lang.Object not found error.
Now > I get the same error in 1.4.2 that I reported in 1.3.1: That one's covered in the User's Guide. Sun moved the .jar with javac out of the search order, so the JVM cannot find it. Best fix is to copy the tools.jar to lib\ext. Mike > ================================================================== > C:\Program Files\NetRexx\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) > > C:\Program Files\NetRexx\bin>java -version > java version "1.4.2" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) > Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build > (142S > R1+80507) (JIT enabled: jitc)) > ================================================================== > > What's missing? > > Regards, > Peter Sharp MQSeries Specialist > Middleware Support > IBM > Ballarat Australia > office: 61-3-5327-3175 mobile: 61-413-276-282 fax: > 61-3-5327-3297 > e-mail: [hidden email] > > Mike said: > This is due to the IBM 1.4 JVM having renamed rt.jar > > NetRexx 2.05 reads *all* jars in the library, so is a little bit slower > starting up, but works around this problem. (Or you can copy core.jar, > etc. to ...\lib\ext.) > > NetRexx 2.05 can be downloaded at: > > http://www-306.ibm.com/software/awdtools/netrexx/nrdown.html > > Mike > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > Mike Cowlishaw, IBM Fellow > IBM UK (MP5), PO Box 31, Birmingham Road, Warwick, CV34 5JL > mailto:[hidden email] -- http://www2.hursley.ibm.com/decimal > > > > 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> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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> |
>> Thanks, NetRexx 2.05 gets around the java.lang.Object not found error. >> Now I get the same error in 1.4.2 that I reported in 1.3.1: > >That one's covered in the User's Guide. Sun moved the .jar with >javac out of the search order, so the JVM cannot find it. Best >fix is to copy the tools.jar to lib\ext. Thanks, that worked. However, if you're referring to the following paragraph on p5, it's an either/or statement and the CLASSPATH option clearly doesn't work. Perhaps the User Guide needs to be updated. "3. If you are running Java 1.2 or later, make the file \lib\tools.jar (which contains the javac compiler) in the Java tree visible to the JVM. You can do this either by adding its path and filename to the CLASSPATH environment variable, or by moving it to the jre\lib\ext directory in the Java tree." Peter Sharp Ballarat Australia ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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> |
It does work for some people, and it did work for me, when I was in 1.2. So 'clearly' is a bit strong... :-) Unfortunately it is almost impossible for me to update site/doc now as it is 'owned' by ibm.com. Took almost 3 months to get 2.05 zip out there :-( Mike - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mike Cowlishaw, IBM Fellow IBM UK (MP5), PO Box 31, Birmingham Road, Warwick, CV34 5JL mailto:[hidden email] -- http://www2.hursley.ibm.com/decimal
>> Thanks, NetRexx 2.05 gets around the java.lang.Object not found error. >> Now I get the same error in 1.4.2 that I reported in 1.3.1: > >That one's covered in the User's Guide. Sun moved the .jar with >javac out of the search order, so the JVM cannot find it. Best >fix is to copy the tools.jar to lib\ext. Thanks, that worked. However, if you're referring to the following paragraph on p5, it's an either/or statement and the CLASSPATH option clearly doesn't work. Perhaps the User Guide needs to be updated. "3. If you are running Java 1.2 or later, make the file \lib\tools.jar (which contains the javac compiler) in the Java tree visible to the JVM. You can do this either by adding its path and filename to the CLASSPATH environment variable, or by moving it to the jre\lib\ext directory in the Java tree." Peter Sharp Ballarat Australia ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 |
Free forum by Nabble | Edit this page |