options replace format comments java symbols nobinary
yearRange = [int 2008, 2121] loop j=0 to yearRange.length-1 by 1 say yearRange[j] end Using 3.03GA on 1.7.0_09-b05 builds okay, but with jdk1.8.0_05 or jdk1.8.0_20 I get: # nrc range.nrx NetRexx portable processor 3.03 NetRexx '3.03', build 61-20140611-2330 Copyright (c) RexxLA, 2011,2014. All rights reserved. Parts Copyright (c) IBM Corporation, 1995,2008. Program range.nrx Exception in thread "main" java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main : 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at org.netrexx.process.RxTranslator.compile(Unknown Source) at org.netrexx.process.NetRexxC.process(Unknown Source) at org.netrexx.process.NetRexxC.main2(Unknown Source) at org.netrexx.process.NetRexxC.main2(Unknown Source) at org.netrexx.process.NetRexxC.main2(Unknown Source) at org.netrexx.process.NetRexxC.main(Unknown Source) An aside question is "yearRange = [int 2008, 2121]" : Why does it not print "2008 2009 2010 2011 ... 2121" instead of just "2008 2121" ? I expected a "range". |
Your code defines an integer array with two parts, then prints each in turn
You might have meant yearRange = [int 2008, 2121] loop j=yearRange[0] to yearRange[yearRange.length-1] by 1 say j end which is same as yearRange = [int 2008, 2121] loop j=yearRange[0] to yearRange[1] say j end which will count from the first to the last values given. It that what you wanted? Dave, -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of gpatrick Sent: 13 June 2014 19:34 To: [hidden email] Subject: [Ibm-netrexx] Compile error options replace format comments java symbols nobinary yearRange = [int 2008, 2121] loop j=0 to yearRange.length-1 by 1 say yearRange[j] end Using 3.03GA on 1.7.0_09-b05 builds okay, but with jdk1.8.0_05 or jdk1.8.0_20 I get: # nrc range.nrx NetRexx portable processor 3.03 NetRexx '3.03', build 61-20140611-2330 Copyright (c) RexxLA, 2011,2014. All rights reserved. Parts Copyright (c) IBM Corporation, 1995,2008. Program range.nrx Exception in thread "main" java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main : 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at org.netrexx.process.RxTranslator.compile(Unknown Source) at org.netrexx.process.NetRexxC.process(Unknown Source) at org.netrexx.process.NetRexxC.main2(Unknown Source) at org.netrexx.process.NetRexxC.main2(Unknown Source) at org.netrexx.process.NetRexxC.main2(Unknown Source) at org.netrexx.process.NetRexxC.main(Unknown Source) An aside question is "yearRange = [int 2008, 2121]" : Why does it not print "2008 2009 2010 2011 ... 2121" instead of just "2008 2121" ? I expected a "range". -- View this message in context: http://ibm-netrexx.215625.n3.nabble.com/Compile-error-tp4027159.html Sent from the ibm-netrexx mailing list archive at Nabble.com. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
That is exactly what I wanted. Thank you!
|
In reply to this post by gpatrick
Your program compiles and runs OK with jdk 1.8.
The error you reported (major.minor 52) implies that NetRexxC was started with Java 1.7 but the compiler (tools.jar) it found was from Java 1.8. (I was able to duplicate the error with that setup.) If you need more help with that issue, please report the output from the environment scanner program: https://kenai.com/projects/netrexx-plus/downloads/download/Enviroscan/enviroscan.class Download and run with command "java enviroscan" On 6/13/2014 11:33 AM, gpatrick wrote: > options replace format comments java symbols nobinary > > yearRange = [int 2008, 2121] > loop j=0 to yearRange.length-1 by 1 > say yearRange[j] > end > > > Using 3.03GA on 1.7.0_09-b05 builds okay, but with jdk1.8.0_05 or > jdk1.8.0_20 I get: > # nrc range.nrx > NetRexx portable processor 3.03 NetRexx '3.03', build 61-20140611-2330 > Copyright (c) RexxLA, 2011,2014. All rights reserved. > Parts Copyright (c) IBM Corporation, 1995,2008. > Program range.nrx > Exception in thread "main" java.lang.UnsupportedClassVersionError: > com/sun/tools/javac/Main : 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > at org.netrexx.process.RxTranslator.compile(Unknown Source) > at org.netrexx.process.NetRexxC.process(Unknown Source) > at org.netrexx.process.NetRexxC.main2(Unknown Source) > at org.netrexx.process.NetRexxC.main2(Unknown Source) > at org.netrexx.process.NetRexxC.main2(Unknown Source) > at org.netrexx.process.NetRexxC.main(Unknown Source) > > An aside question is "yearRange = [int 2008, 2121]" : > Why does it not print "2008 2009 2010 2011 ... 2121" instead of just "2008 > 2121" ? I expected a "range". > > > > -- > View this message in context: http://ibm-netrexx.215625.n3.nabble.com/Compile-error-tp4027159.html > Sent from the ibm-netrexx mailing list archive at Nabble.com. > > _______________________________________________ > 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/ |
Free forum by Nabble | Edit this page |