Dear NetRexx users, there have been no error reports for NetRexx...
there have been no error reports for NetRexx 3.11 GA. When there are no reports in the next few weeks, this release will indeed be the end of the line for NetRexx 3.xx. For the 4.01 beta’s, all reported issues are resolved in beta4, which hit the server for http://netrexx.org a few minutes ago. The issues encountered all had to do with the Eclipse Java Compiler, which is a fallback option to enable compiles on JRE-only systems. The directory examples/new-4.01/RxJrt.nrx has a JMPS jrt:/ filesystem walker; all fixes and the example by Marc Remes. New functionality in beta4 is a Classic Rexx (4.02) compatible set of Date and Time functions. Earlier beta’s had the single-option versions, beta4 adds the Date input and conversions/separators, based on the ANSI/ISO/INCITS Rexx standard. For Time, Time(‘R’) and Time(‘E’) now use NanoTime; also, Time(‘L’) now has the standard six positions after the decimal point. The program file examples/new-4.01/testdate.nrx has the tests and shows how to use this functionality by including a ‘uses RexxDate’ on the class statement. best regards, René. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
I can confirm with beta4 My nrx files now compile with normal nrc command usage without -javac with Java 1.8 and the class files can be also be run with java 1.7 With 1.7 I can not compile 4.01 (also not with -javac version) due to Unsupported major.minor version 52.0 Outputs: java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) C:\Users\Michael>nrc mqqutilputx java -cp "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." -Dnrx.compiler=ecj org.netrexx.process.NetRexxC mqqutilputx Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported major.minor version 52.0 C:\Users\Michael>nrc -javac mqqutilputx java -cp "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." -Dnrx.compiler=ecj org.netrexx.process.NetRexxC -javac mqqutilputx Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported major.minor version 52.0 Michael @ MQSystems From: Ibm-netrexx <[hidden email]> On Behalf Of René Jansen Dear NetRexx users, there have been no error reports for NetRexx 3.11 GA. When there are no reports in the next few weeks, this release will indeed be the end of the line for NetRexx 3.xx. For the 4.01 beta’s, all reported issues are resolved in beta4, which hit the server for http://netrexx.org a few minutes ago. The issues encountered all had to do with the Eclipse Java Compiler, which is a fallback option to enable compiles on JRE-only systems. The directory examples/new-4.01/RxJrt.nrx has a JMPS jrt:/ filesystem walker; all fixes and the example by Marc Remes. New functionality in beta4 is a Classic Rexx (4.02) compatible set of Date and Time functions. Earlier beta’s had the single-option versions, beta4 adds the Date input and conversions/separators, based on the ANSI/ISO/INCITS Rexx standard. For Time, Time(‘R’) and Time(‘E’) now use NanoTime; also, Time(‘L’) now has the standard six positions after the decimal point. The program file examples/new-4.01/testdate.nrx has the tests and shows how to use this functionality by including a ‘uses RexxDate’ on the class statement. best regards, René. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Thank you! I also can confirm Beta4 in first tests for both "raw" NetRexx and Pipelines. However, I have discovered a bug in one of my Pipeline stages, CHOP. How should I interact with this Beta4 and the origin master in SourceForge? Jeff Hennick On 10.01.2021 06:41, maillists (@MQSystems) wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Michael (maillists) Dag
Hi Michael,
the quickstart guide mentions 'The NetRexx samples and translator, version 4.01-beta4, are guaranteed to run on Java version 8 or later'. Are you expecting to run the translator on Java 7? Marc On 1/10/21 12:41 PM, maillists (@MQSystems) wrote: > I can confirm with beta4 > > My nrx files now compile with normal nrc command usage without -javac with Java 1.8 and the class files can be also be > run with java 1.7 > > With 1.7 I can not compile 4.01 (also not with -javac version) due to Unsupported major.minor version 52.0 > > Outputs: > > java -version > > java version "1.7.0_80" > > Java(TM) SE Runtime Environment (build 1.7.0_80-b15) > > Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) > > C:\Users\Michael>nrc mqqutilputx > > java -cp > "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." > -Dnrx.compiler=ecj org.netrexx.process.NetRexxC mqqutilputx > > Exception in thread "main" java.lang.UnsupportedClassVersionError: > org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported major.minor version 52.0 > > C:\Users\Michael>nrc -javac mqqutilputx > > java -cp > "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." > -Dnrx.compiler=ecj org.netrexx.process.NetRexxC -javac mqqutilputx > > Exception in thread "main" java.lang.UnsupportedClassVersionError: > org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported major.minor version 52.0 > > Michael @ MQSystems > > *From:*Ibm-netrexx <[hidden email]> *On Behalf Of *René Jansen > *Sent:* zondag 10 januari 2021 1:34 > *To:* IBM Netrexx <[hidden email]> > *Subject:* [Ibm-netrexx] NetRexx 4.01 beta4 available > > Dear NetRexx users, > > there have been no error reports for NetRexx 3.11 GA. When there are no reports in the next few weeks, this release will > indeed be the end of the line for NetRexx 3.xx. > > For the 4.01 beta’s, all reported issues are resolved in beta4, which hit the server for http://netrexx.org > <https://urldefense.proofpoint.com/v2/url?u=http-3A__netrexx.org&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=dzx_50aPEk2YFzX7eZY3YQrL_N7xdqmuXg3MTaqW2BI&s=GTT1zRRNokYWnzBb1HVpKbwDmVOkRYPxLkSBunhCY2o&e=> > a few minutes ago. The issues encountered all had to do with the Eclipse Java Compiler, which is a fallback option to > enable compiles on JRE-only systems. The directory examples/new-4.01/RxJrt.nrx has a JMPS jrt:/ filesystem walker; all > fixes and the example by Marc Remes. > > New functionality in beta4 is a Classic Rexx (4.02) compatible set of Date and Time functions. Earlier beta’s had the > single-option versions, beta4 adds the Date input and conversions/separators, based on the ANSI/ISO/INCITS Rexx > standard. For Time, Time(‘R’) and Time(‘E’) now use NanoTime; also, Time(‘L’) now has the standard six positions after > the decimal point. The program file examples/new-4.01/testdate.nrx has the tests and shows how to use this functionality > by including a ‘uses RexxDate’ on the class statement. > > best regards, > > René. > > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ OpenPGP_signature (505 bytes) Download Attachment |
strip ns2..
On 1/10/21 5:36 PM, Marc Remes wrote: > Hi Michael, > > the quickstart guide mentions 'The NetRexx samples and translator, version 4.01-beta4, are guaranteed to > run on Java version 8 or later'. > > Are you expecting to run the translator on Java 7? > > Marc > > On 1/10/21 12:41 PM, maillists (@MQSystems) wrote: >> I can confirm with beta4 >> >> My nrx files now compile with normal nrc command usage without -javac with Java 1.8 and the class files can be also >> be run with java 1.7 >> >> With 1.7 I can not compile 4.01 (also not with -javac version) due to Unsupported major.minor version 52.0 >> >> Outputs: >> >> java -version >> >> java version "1.7.0_80" >> >> Java(TM) SE Runtime Environment (build 1.7.0_80-b15) >> >> Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) >> >> C:\Users\Michael>nrc mqqutilputx >> >> java -cp >> "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." >> -Dnrx.compiler=ecj org.netrexx.process.NetRexxC mqqutilputx >> >> Exception in thread "main" java.lang.UnsupportedClassVersionError: >> org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported major.minor version 52.0 >> >> C:\Users\Michael>nrc -javac mqqutilputx >> >> java -cp >> "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." >> -Dnrx.compiler=ecj org.netrexx.process.NetRexxC -javac mqqutilputx >> >> Exception in thread "main" java.lang.UnsupportedClassVersionError: >> org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported major.minor version 52.0 >> >> Michael @ MQSystems >> >> *From:*Ibm-netrexx <[hidden email]> *On Behalf Of *René Jansen >> *Sent:* zondag 10 januari 2021 1:34 >> *To:* IBM Netrexx <[hidden email]> >> *Subject:* [Ibm-netrexx] NetRexx 4.01 beta4 available >> >> Dear NetRexx users, >> >> there have been no error reports for NetRexx 3.11 GA. When there are no reports in the next few weeks, this release >> will indeed be the end of the line for NetRexx 3.xx. >> >> For the 4.01 beta’s, all reported issues are resolved in beta4, which hit the server for http://netrexx.org >> <https://urldefense.proofpoint.com/v2/url?u=http-3A__netrexx.org&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=dzx_50aPEk2YFzX7eZY3YQrL_N7xdqmuXg3MTaqW2BI&s=GTT1zRRNokYWnzBb1HVpKbwDmVOkRYPxLkSBunhCY2o&e=> >> a few minutes ago. The issues encountered all had to do with the Eclipse Java Compiler, which is a fallback option >> to enable compiles on JRE-only systems. The directory examples/new-4.01/RxJrt.nrx has a JMPS jrt:/ filesystem walker; >> all fixes and the example by Marc Remes. >> >> New functionality in beta4 is a Classic Rexx (4.02) compatible set of Date and Time functions. Earlier beta’s had the >> single-option versions, beta4 adds the Date input and conversions/separators, based on the ANSI/ISO/INCITS Rexx >> standard. For Time, Time(‘R’) and Time(‘E’) now use NanoTime; also, Time(‘L’) now has the standard six positions after >> the decimal point. The program file examples/new-4.01/testdate.nrx has the tests and shows how to use this >> functionality by including a ‘uses RexxDate’ on the class statement. >> >> best regards, >> >> René. >> >> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ >> > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ OpenPGP_signature (505 bytes) Download Attachment |
In reply to this post by Marc Remes-2
Hi Marc,
I just thought i'd mention it. 4.01 runs with 1.7 but does not compile with 1.7. I can live with that restriction. -----Original Message----- From: Ibm-netrexx <[hidden email]> On Behalf Of Marc Remes Sent: zondag 10 januari 2021 17:36 To: IBM Netrexx <[hidden email]>; 'IBM Netrexx' <[hidden email]> Subject: Re: [Ibm-netrexx] NetRexx 4.01 beta4 available Hi Michael, the quickstart guide mentions 'The NetRexx samples and translator, version 4.01-beta4, are guaranteed to run on Java version 8 or later'. Are you expecting to run the translator on Java 7? Marc On 1/10/21 12:41 PM, maillists (@MQSystems) wrote: > I can confirm with beta4 > > My nrx files now compile with normal nrc command usage without -javac > with Java 1.8 and the class files can be also be run with java 1.7 > > With 1.7 I can not compile 4.01 (also not with -javac version) due to > Unsupported major.minor version 52.0 > > Outputs: > > java -version > > java version "1.7.0_80" > > Java(TM) SE Runtime Environment (build 1.7.0_80-b15) > > Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) > > C:\Users\Michael>nrc mqqutilputx > > java -cp > "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." > -Dnrx.compiler=ecj org.netrexx.process.NetRexxC mqqutilputx > > Exception in thread "main" java.lang.UnsupportedClassVersionError: > org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported > major.minor version 52.0 > > C:\Users\Michael>nrc -javac mqqutilputx > > java -cp > "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." > -Dnrx.compiler=ecj org.netrexx.process.NetRexxC -javac mqqutilputx > > Exception in thread "main" java.lang.UnsupportedClassVersionError: > org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported > major.minor version 52.0 > > Michael @ MQSystems > > *From:*Ibm-netrexx <[hidden email]> *On > Behalf Of *René Jansen > *Sent:* zondag 10 januari 2021 1:34 > *To:* IBM Netrexx <[hidden email]> > *Subject:* [Ibm-netrexx] NetRexx 4.01 beta4 available > > Dear NetRexx users, > > there have been no error reports for NetRexx 3.11 GA. When there are > no reports in the next few weeks, this release will indeed be the end of the line for NetRexx 3.xx. > > For the 4.01 beta’s, all reported issues are resolved in beta4, which > hit the server for https://urldefense.proofpoint.com/v2/url?u=http-3A__netrexx.org&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=d2TmiFOGRsbx72fwf97LJh7irauXKvlw_sYFPC3HuMQ&s=EI4lKWWtsxGEk-HLlMLRB2BQwZwK2NdD5U1TrUKtlJQ&e= > <https://urldefense.proofpoint.com/v2/url?u=http-3A__netrexx.org&d=DwM > FaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnT > XpXE&m=dzx_50aPEk2YFzX7eZY3YQrL_N7xdqmuXg3MTaqW2BI&s=GTT1zRRNokYWnzBb1 > HVpKbwDmVOkRYPxLkSBunhCY2o&e=> > a few minutes ago. The issues encountered all had to do with the > Eclipse Java Compiler, which is a fallback option to enable compiles > on JRE-only systems. The directory examples/new-4.01/RxJrt.nrx has a JMPS jrt:/ filesystem walker; all fixes and the example by Marc Remes. > > New functionality in beta4 is a Classic Rexx (4.02) compatible set of > Date and Time functions. Earlier beta’s had the single-option > versions, beta4 adds the Date input and conversions/separators, based > on the ANSI/ISO/INCITS Rexx standard. For Time, Time(‘R’) and > Time(‘E’) now use NanoTime; also, Time(‘L’) now has the standard six positions after the decimal point. The program file examples/new-4.01/testdate.nrx has the tests and shows how to use this functionality by including a ‘uses RexxDate’ on the class statement. > > best regards, > > René. > > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : https://urldefense.proofpoint.com/v2/url?u=http-3A__ibm-2Dnetrexx.215625.n3.nabble.com_&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=d2TmiFOGRsbx72fwf97LJh7irauXKvlw_sYFPC3HuMQ&s=bNbDTsX2IVf8T8hr6O2Ts0EQ8AZSLG5B9nHYDHVD3NQ&e= > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Michael,
let me give you some background. NetRexxF.jar contains a - modified - EclipseCompiler class. While this compiler emits Java 1.7 compatible code, it needs to be run on Java 8. We have not found an Eclipse JDT ecj.jar that runs on Java 7. The thing is, you don't need ecj.jar (or NetRexxF.jar) on Java 7. With only NetRexxC.jar on your CLASSPATH, you should be able to 'nrc [-run | -exec] hello.nrx'. Just don't specify NetRexxF.jar on your CLASSPATH, and don't use the -ecj option. (For that matter, I don't understand why/how the EclipseCompiler 52.0 class is loaded upon -ecj, as the jar is not on the JRE classpath..) Marc On 1/12/21 2:18 PM, maillists (@MQSystems) wrote: > Hi Marc, > I just thought i'd mention it. > 4.01 runs with 1.7 but does not compile with 1.7. > I can live with that restriction. > > -----Original Message----- > From: Ibm-netrexx <[hidden email]> On Behalf Of Marc Remes > Sent: zondag 10 januari 2021 17:36 > To: IBM Netrexx <[hidden email]>; 'IBM Netrexx' <[hidden email]> > Subject: Re: [Ibm-netrexx] NetRexx 4.01 beta4 available > > Hi Michael, > > the quickstart guide mentions 'The NetRexx samples and translator, version 4.01-beta4, are guaranteed to run on Java version 8 or later'. > > Are you expecting to run the translator on Java 7? > > Marc > > On 1/10/21 12:41 PM, maillists (@MQSystems) wrote: >> I can confirm with beta4 >> >> My nrx files now compile with normal nrc command usage without -javac >> with Java 1.8 and the class files can be also be run with java 1.7 >> >> With 1.7 I can not compile 4.01 (also not with -javac version) due to >> Unsupported major.minor version 52.0 >> >> Outputs: >> >> java -version >> >> java version "1.7.0_80" >> >> Java(TM) SE Runtime Environment (build 1.7.0_80-b15) >> >> Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) >> >> C:\Users\Michael>nrc mqqutilputx >> >> java -cp >> "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." >> -Dnrx.compiler=ecj org.netrexx.process.NetRexxC mqqutilputx >> >> Exception in thread "main" java.lang.UnsupportedClassVersionError: >> org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported >> major.minor version 52.0 >> >> C:\Users\Michael>nrc -javac mqqutilputx >> >> java -cp >> "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." >> -Dnrx.compiler=ecj org.netrexx.process.NetRexxC -javac mqqutilputx >> >> Exception in thread "main" java.lang.UnsupportedClassVersionError: >> org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported >> major.minor version 52.0 >> >> Michael @ MQSystems >> >> *From:*Ibm-netrexx <[hidden email]> *On >> Behalf Of *René Jansen >> *Sent:* zondag 10 januari 2021 1:34 >> *To:* IBM Netrexx <[hidden email]> >> *Subject:* [Ibm-netrexx] NetRexx 4.01 beta4 available >> >> Dear NetRexx users, >> >> there have been no error reports for NetRexx 3.11 GA. When there are >> no reports in the next few weeks, this release will indeed be the end of the line for NetRexx 3.xx. >> >> For the 4.01 beta’s, all reported issues are resolved in beta4, which >> hit the server for https://urldefense.proofpoint.com/v2/url?u=http-3A__netrexx.org&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=d2TmiFOGRsbx72fwf97LJh7irauXKvlw_sYFPC3HuMQ&s=EI4lKWWtsxGEk-HLlMLRB2BQwZwK2NdD5U1TrUKtlJQ&e= >> <https://urldefense.proofpoint.com/v2/url?u=http-3A__netrexx.org&d=DwM >> FaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnT >> XpXE&m=dzx_50aPEk2YFzX7eZY3YQrL_N7xdqmuXg3MTaqW2BI&s=GTT1zRRNokYWnzBb1 >> HVpKbwDmVOkRYPxLkSBunhCY2o&e=> >> a few minutes ago. The issues encountered all had to do with the >> Eclipse Java Compiler, which is a fallback option to enable compiles >> on JRE-only systems. The directory examples/new-4.01/RxJrt.nrx has a JMPS jrt:/ filesystem walker; all fixes and the example by Marc Remes. >> >> New functionality in beta4 is a Classic Rexx (4.02) compatible set of >> Date and Time functions. Earlier beta’s had the single-option >> versions, beta4 adds the Date input and conversions/separators, based >> on the ANSI/ISO/INCITS Rexx standard. For Time, Time(‘R’) and >> Time(‘E’) now use NanoTime; also, Time(‘L’) now has the standard six positions after the decimal point. The program file examples/new-4.01/testdate.nrx has the tests and shows how to use this functionality by including a ‘uses RexxDate’ on the class statement. >> >> best regards, >> >> René. >> >> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> Online Archive : https://urldefense.proofpoint.com/v2/url?u=http-3A__ibm-2Dnetrexx.215625.n3.nabble.com_&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=d2TmiFOGRsbx72fwf97LJh7irauXKvlw_sYFPC3HuMQ&s=bNbDTsX2IVf8T8hr6O2Ts0EQ8AZSLG5B9nHYDHVD3NQ&e= >> > > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ OpenPGP_signature (505 bytes) Download Attachment |
If I understand your last sentence, the one within parentheses, and the question that it entails, correctly: both compilers are loaded using the reflection API, otherwise compiling the compiler would not succeed if one of the two choices is not on the classpath. When using NetRexxF, ecj is always on the classpath. When using NetRexxC.jar, ecj can still be used if it is found on the classpath - when -ecj is specified. If javac (its Java equivalent) is not found when specifying nothing, or -javac, it will still try for a reflective load and an ecj compile before giving up.
But in short, NetRexx 3.11 GA is for JDK6-7. NetRexx 4.01 is for JDK 8 and greater. best regards, Rene. > On 14 Jan 2021, at 17:27, Marc Remes <[hidden email]> wrote: > > Hi Michael, > > let me give you some background. > > NetRexxF.jar contains a - modified - EclipseCompiler class. While this compiler emits Java 1.7 compatible code, it needs to be run on Java 8. We have not found an Eclipse JDT ecj.jar that runs on Java 7. > > The thing is, you don't need ecj.jar (or NetRexxF.jar) on Java 7. > With only NetRexxC.jar on your CLASSPATH, you should be able to 'nrc [-run | -exec] hello.nrx'. > > Just don't specify NetRexxF.jar on your CLASSPATH, and don't use the -ecj option. > > (For that matter, I don't understand why/how the EclipseCompiler 52.0 class is loaded upon -ecj, as the jar is not on the JRE classpath..) > > Marc > > > On 1/12/21 2:18 PM, maillists (@MQSystems) wrote: >> Hi Marc, >> I just thought i'd mention it. >> 4.01 runs with 1.7 but does not compile with 1.7. >> I can live with that restriction. >> -----Original Message----- >> From: Ibm-netrexx <[hidden email]> On Behalf Of Marc Remes >> Sent: zondag 10 januari 2021 17:36 >> To: IBM Netrexx <[hidden email]>; 'IBM Netrexx' <[hidden email]> >> Subject: Re: [Ibm-netrexx] NetRexx 4.01 beta4 available >> Hi Michael, >> the quickstart guide mentions 'The NetRexx samples and translator, version 4.01-beta4, are guaranteed to run on Java version 8 or later'. >> Are you expecting to run the translator on Java 7? >> Marc >> On 1/10/21 12:41 PM, maillists (@MQSystems) wrote: >>> I can confirm with beta4 >>> >>> My nrx files now compile with normal nrc command usage without -javac >>> with Java 1.8 and the class files can be also be run with java 1.7 >>> >>> With 1.7 I can not compile 4.01 (also not with -javac version) due to >>> Unsupported major.minor version 52.0 >>> >>> Outputs: >>> >>> java -version >>> >>> java version "1.7.0_80" >>> >>> Java(TM) SE Runtime Environment (build 1.7.0_80-b15) >>> >>> Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) >>> >>> C:\Users\Michael>nrc mqqutilputx >>> >>> java -cp >>> "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." >>> -Dnrx.compiler=ecj org.netrexx.process.NetRexxC mqqutilputx >>> >>> Exception in thread "main" java.lang.UnsupportedClassVersionError: >>> org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported >>> major.minor version 52.0 >>> >>> C:\Users\Michael>nrc -javac mqqutilputx >>> >>> java -cp >>> "C:\IBMMQ92\java\lib\com.ibm.mq.jmqi.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;.;C:\NetRexx\4.0.1\lib\NetRexxC.jar;c:\java\jdk1.7.0_80\lib\Tools.jar;C:\IBMMQ92\java\lib\com.ibm.mqjms.jar;C:\IBMMQ92\java\lib\com.ibm.mq.jar;;C:\NetRexx\4.0.1\lib\NetRexxF.jar;." >>> -Dnrx.compiler=ecj org.netrexx.process.NetRexxC -javac mqqutilputx >>> >>> Exception in thread "main" java.lang.UnsupportedClassVersionError: >>> org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported >>> major.minor version 52.0 >>> >>> Michael @ MQSystems >>> >>> *From:*Ibm-netrexx <[hidden email]> *On >>> Behalf Of *René Jansen >>> *Sent:* zondag 10 januari 2021 1:34 >>> *To:* IBM Netrexx <[hidden email]> >>> *Subject:* [Ibm-netrexx] NetRexx 4.01 beta4 available >>> >>> Dear NetRexx users, >>> >>> there have been no error reports for NetRexx 3.11 GA. When there are >>> no reports in the next few weeks, this release will indeed be the end of the line for NetRexx 3.xx. >>> >>> For the 4.01 beta’s, all reported issues are resolved in beta4, which >>> hit the server for https://urldefense.proofpoint.com/v2/url?u=http-3A__netrexx.org&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=d2TmiFOGRsbx72fwf97LJh7irauXKvlw_sYFPC3HuMQ&s=EI4lKWWtsxGEk-HLlMLRB2BQwZwK2NdD5U1TrUKtlJQ&e= >>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__netrexx.org&d=DwM >>> FaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnT >>> XpXE&m=dzx_50aPEk2YFzX7eZY3YQrL_N7xdqmuXg3MTaqW2BI&s=GTT1zRRNokYWnzBb1 >>> HVpKbwDmVOkRYPxLkSBunhCY2o&e=> >>> a few minutes ago. The issues encountered all had to do with the >>> Eclipse Java Compiler, which is a fallback option to enable compiles >>> on JRE-only systems. The directory examples/new-4.01/RxJrt.nrx has a JMPS jrt:/ filesystem walker; all fixes and the example by Marc Remes. >>> >>> New functionality in beta4 is a Classic Rexx (4.02) compatible set of >>> Date and Time functions. Earlier beta’s had the single-option >>> versions, beta4 adds the Date input and conversions/separators, based >>> on the ANSI/ISO/INCITS Rexx standard. For Time, Time(‘R’) and >>> Time(‘E’) now use NanoTime; also, Time(‘L’) now has the standard six positions after the decimal point. The program file examples/new-4.01/testdate.nrx has the tests and shows how to use this functionality by including a ‘uses RexxDate’ on the class statement. >>> >>> best regards, >>> >>> René. >>> >>> >>> _______________________________________________ >>> Ibm-netrexx mailing list >>> [hidden email] >>> Online Archive : https://urldefense.proofpoint.com/v2/url?u=http-3A__ibm-2Dnetrexx.215625.n3.nabble.com_&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=d2TmiFOGRsbx72fwf97LJh7irauXKvlw_sYFPC3HuMQ&s=bNbDTsX2IVf8T8hr6O2Ts0EQ8AZSLG5B9nHYDHVD3NQ&e= >>> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> Online Archive : https://urldefense.proofpoint.com/v2/url?u=http-3A__ibm-2Dnetrexx.215625.n3.nabble.com_&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=Z1RObsqnIxjH2sT4m6PrwLP44kHU7skfv_muo0EJTuw&s=WffGmaHIuMe0uQ9J4fx94Qj2O0whyFmXMKYAdu_vMZQ&e= > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : https://urldefense.proofpoint.com/v2/url?u=http-3A__ibm-2Dnetrexx.215625.n3.nabble.com_&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=Z1RObsqnIxjH2sT4m6PrwLP44kHU7skfv_muo0EJTuw&s=WffGmaHIuMe0uQ9J4fx94Qj2O0whyFmXMKYAdu_vMZQ&e= > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Well, numbers are difficult.
Correction: "But in short, NetRexx 3.11 GA is for JDK6-8. NetRexx 4.01 is for JDK 8 and greater."
3.11 also works with JDK8, of course. René
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
René,
that's just my point, ecj.jar nor NetRexxF.jar are on CLASSPATH : [remesm@xps nrx]$ echo $CLASSPATH /home/remesm/nrx-4.01beta4/lib/NetRexxC.jar: [remesm@xps nrx]$ java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) [remesm@xps nrx]$ javac bash: javac: command not found... Similar command is: 'java' [remesm@xps nrx]$ nrc hello NetRexx portable processor 4.01-beta4 build 413-20210110-0038 Copyright (c) RexxLA, 2011,2021. All rights reserved. Parts Copyright (c) IBM Corporation, 1995,2008. Program hello.nrx Compilation of 'hello.nrx' successful [remesm@xps nrx]$ nrc -ecj hello NetRexx portable processor 4.01-beta4 build 413-20210110-0038 Copyright (c) RexxLA, 2011,2021. All rights reserved. Parts Copyright (c) IBM Corporation, 1995,2008. Program hello.nrx Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/jdt/internal/compiler/tool/EclipseCompiler : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at org.netrexx.process.RxTranslator.compile(RxTranslator.java:998) at org.netrexx.process.NetRexxC.process(NetRexxC.java:533) at org.netrexx.process.NetRexxC.main2(NetRexxC.java:338) at org.netrexx.process.NetRexxC.main2(NetRexxC.java:318) at org.netrexx.process.NetRexxC.main2(NetRexxC.java:314) at org.netrexx.process.NetRexxC.main(NetRexxC.java:168) On 1/14/21 5:01 PM, René Jansen wrote: > When using NetRexxC.jar, ecj can still be used if it is found on the classpath - when -ecj is specified. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ OpenPGP_signature (505 bytes) Download Attachment |
Can you use that version of ECJ with Java 7 to compile just a simple
java program? Not using NetRexx at all. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Indeed no, Jason, the ecj version delivered with NetRexx 4.x will not run on Java 7.
But, as said, NetRexx does not need it on Java 7. You can compile, run and exec netrexx code without it. On 1/14/21 6:01 PM, Jason Martin wrote: > Can you use that version of ECJ with Java 7 to compile just a simple java program? > > Not using NetRexx at all. > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ OpenPGP_signature (505 bytes) Download Attachment |
Internally is it [or NetRexx] setting this option?
Compliance options: -1.3 use 1.3 compliance (-source 1.3 -target 1.1) -1.4 + use 1.4 compliance (-source 1.3 -target 1.2) -1.5 -5 -5.0 use 1.5 compliance (-source 1.5 -target 1.5) -1.6 -6 -6.0 use 1.6 compliance (-source 1.6 -target 1.6) -1.7 -7 -7.0 use 1.7 compliance (-source 1.7 -target 1.7) P.S. This ns2.hursley problem needs to go _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
The ecj compiler is hard-coded to accept java 1.7 source code as input and to output java 7 class versions. But it needs
to run under Java 8, the dreaded 52.0 major.minor version. To complicate matters further, the used ecj source files need to be compiled with Java 15. When compiling with javac, NetRexx creates class files with versions the java compiler issues. Thus on java 7 -> 51.0 java 8 -> 52.0 java 11-> 55.0 java 15-> 59.0 Lower class versions are always compatible to be run on higher java versions. Finally, netrexx itself needs to be compiled with Java 8, because of jrt-fs.jar not being available on Java 7. Anyway, I tend to abandon the Java 7 route as it is no longer publicly supported. Marc On 1/14/21 7:52 PM, Jason Martin wrote: > Internally is it [or NetRexx] setting this option? > > Compliance options: > -1.3 use 1.3 compliance (-source 1.3 -target 1.1) > -1.4 + use 1.4 compliance (-source 1.3 -target 1.2) > -1.5 -5 -5.0 use 1.5 compliance (-source 1.5 -target 1.5) > -1.6 -6 -6.0 use 1.6 compliance (-source 1.6 -target 1.6) > -1.7 -7 -7.0 use 1.7 compliance (-source 1.7 -target 1.7) > > > P.S. > > This ns2.hursley problem needs to go > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ OpenPGP_signature (505 bytes) Download Attachment |
In reply to this post by Jason Martin
You are right, I am going to escalate this ns2 issue at IBM.
René. > On 14 Jan 2021, at 19:55, Jason Martin <[hidden email]> wrote: > > Internally is it [or NetRexx] setting this option? > > Compliance options: > -1.3 use 1.3 compliance (-source 1.3 -target 1.1) > -1.4 + use 1.4 compliance (-source 1.3 -target 1.2) > -1.5 -5 -5.0 use 1.5 compliance (-source 1.5 -target 1.5) > -1.6 -6 -6.0 use 1.6 compliance (-source 1.6 -target 1.6) > -1.7 -7 -7.0 use 1.7 compliance (-source 1.7 -target 1.7) > > > P.S. > > This ns2.hursley problem needs to go > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : https://urldefense.proofpoint.com/v2/url?u=http-3A__ibm-2Dnetrexx.215625.n3.nabble.com_&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=uRIziEnFmj0iInVZ8_1OqmG_amFXSvJxLzbwxMvJlHg&s=gpAUR7a1zjxY9A2mJ0kAI9_tQeAE53S4djMxRjbVNR8&e= > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
If you see this, the problem has been fixed. Thanks to Peter Griffin from IBM Hursley!
René. > On 14 Jan 2021, at 22:39, [hidden email] wrote: > > You are right, I am going to escalate this ns2 issue at IBM. > > René. > >> On 14 Jan 2021, at 19:55, Jason Martin <[hidden email]> wrote: >> >> Internally is it [or NetRexx] setting this option? >> >> Compliance options: >> -1.3 use 1.3 compliance (-source 1.3 -target 1.1) >> -1.4 + use 1.4 compliance (-source 1.3 -target 1.2) >> -1.5 -5 -5.0 use 1.5 compliance (-source 1.5 -target 1.5) >> -1.6 -6 -6.0 use 1.6 compliance (-source 1.6 -target 1.6) >> -1.7 -7 -7.0 use 1.7 compliance (-source 1.7 -target 1.7) >> >> >> P.S. >> >> This ns2.hursley problem needs to go >> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> Online Archive : https://urldefense.proofpoint.com/v2/url?u=http-3A__ibm-2Dnetrexx.215625.n3.nabble.com_&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=YidQe9AMrt5vZvF6tAsMB82ZaqAJ5MLyBcm0Kz11y4I&s=yWsH0EcAc5-fUhTnDERH7796meyxID4P1pc0u2d-tPQ&e= >> _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |