Hi @all, still trying to get NetRexx running - but no way - i'm thinking of the good old past times where REXX just runs by typing rexx <rexx-programfilename> My environment: I use the newest package called NetRexx-3.01RC2.zip OS installed: Windows Server 2008 R2 x64 Java-Version used: java version "1.6.0_30" Java(TM) SE Runtime Environment (build 1.6.0_30-b12) Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing) Java is installed here: C:\Program Files (x86)\Java\jre6 The NetRexxC.jar ist here: C:\Program Files (x86)\Java\jre6\lib NetRexx is installed here: C:\NetRexx my PATH-variable contains: ...;C:\NetRexx\bin There is no CLASSPATH-variable and according to some java-forums it seems not recommended to create one anymore. I'm working page per page with the book "NetRexx User Guide September 1st,2011 Version 3.01", currently hanging on page 21. If i try to run the hello.nrx program, this happens: C:\NetRexx\examples\ibm-historic>nrc -run hello.nrx Exception in thread "main" java.lang.NoClassDefFoundError: org/netrexx/process/NetRexxC Caused by: java.lang.ClassNotFoundException: org.netrexx.process.NetRexxC at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: org.netrexx.process.NetRexxC. Program will exit. Does anyone can help me? Thanks in advance, Kind regards, Christian Schaper _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Christian,
my advice would be to put in a CLASSPATH variabe in your environment, making sure that 1) NetRexxC.jar (the full path to) 2) tools.jar (idem) are on it. Working without a classpath is in theory a possibility, but has practical drawbacks. Let us know how it goes - we will make it work. best regards, René Jansen. On 1 mei 2012, at 18:30, [hidden email] wrote: > > Hi @all, > > still trying to get NetRexx running - but no way - i'm thinking of the good > old past times where REXX just runs by typing rexx <rexx-programfilename> > > My environment: > I use the newest package called NetRexx-3.01RC2.zip > OS installed: Windows Server 2008 R2 x64 > Java-Version used: java version "1.6.0_30" > Java(TM) SE Runtime Environment (build > 1.6.0_30-b12) > Java HotSpot(TM) Client VM (build 20.5-b03, mixed > mode, sharing) > Java is installed here: C:\Program Files (x86)\Java\jre6 > The NetRexxC.jar ist here: C:\Program Files (x86)\Java\jre6\lib > NetRexx is installed here: C:\NetRexx > my PATH-variable contains: ...;C:\NetRexx\bin > > There is no CLASSPATH-variable and according to some java-forums it seems > not recommended to create one anymore. > > I'm working page per page with the book "NetRexx User Guide September > 1st,2011 Version 3.01", currently hanging on page 21. > If i try to run the hello.nrx program, this happens: > > C:\NetRexx\examples\ibm-historic>nrc -run hello.nrx > Exception in thread "main" java.lang.NoClassDefFoundError: > org/netrexx/process/NetRexxC > Caused by: java.lang.ClassNotFoundException: org.netrexx.process.NetRexxC > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > Could not find the main class: org.netrexx.process.NetRexxC. Program will > exit. > > Does anyone can help me? > > Thanks in advance, > > Kind regards, > Christian Schaper > > _______________________________________________ > 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/ |
In reply to this post by schaper
Hi Christian,
You will have to put the NetRexxC.jar into the ...\lib\ext\ subdirectory of of your proper JDK. I use this technique for years to avaid the need o any classpath at all! When that does not work, give me a phone call tomorrow, 10:00 - 19:00 o'clock: +43/1/20 85 195 and we can check it out whilst you and I are on the computer :-) Thomas Schneider, Vienna, Austria. ======================================================== Am 01.05.2012 18:30, schrieb [hidden email]: > Hi @all, > > still trying to get NetRexx running - but no way - i'm thinking of the good > old past times where REXX just runs by typing rexx<rexx-programfilename> > > My environment: > I use the newest package called NetRexx-3.01RC2.zip > OS installed: Windows Server 2008 R2 x64 > Java-Version used: java version "1.6.0_30" > Java(TM) SE Runtime Environment (build > 1.6.0_30-b12) > Java HotSpot(TM) Client VM (build 20.5-b03, mixed > mode, sharing) > Java is installed here: C:\Program Files (x86)\Java\jre6 > The NetRexxC.jar ist here: C:\Program Files (x86)\Java\jre6\lib > NetRexx is installed here: C:\NetRexx > my PATH-variable contains: ...;C:\NetRexx\bin > > There is no CLASSPATH-variable and according to some java-forums it seems > not recommended to create one anymore. > > I'm working page per page with the book "NetRexx User Guide September > 1st,2011 Version 3.01", currently hanging on page 21. > If i try to run the hello.nrx program, this happens: > > C:\NetRexx\examples\ibm-historic>nrc -run hello.nrx > Exception in thread "main" java.lang.NoClassDefFoundError: > org/netrexx/process/NetRexxC > Caused by: java.lang.ClassNotFoundException: org.netrexx.process.NetRexxC > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > Could not find the main class: org.netrexx.process.NetRexxC. Program will > exit. > > Does anyone can help me? > > Thanks in advance, > > Kind regards, > Christian Schaper > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > > -- Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org) _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
In reply to this post by schaper
Welcome Christian --
While modern Java does not need a classpath to find it's own files, that is not true for 3rd party applications. Both NetRexx and your own programs will need a classpath to allow Java to find them. The CLASSPATH environment variable is not recommended these days because it can cause conflicts in applications with different path requirements. Each Java application should now have it's own classpath specified in the Java startup command. For example, you could add "-cp .;c:\NetRexx\NetRexxC.jar" to the java commands in your NetRexxC.bat file before the other operands. There is also a Java program you can download and run to display all relevant environment info: http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class run with java envirotest and post results and someone can help with any classpath issues. -- Kermit On 5/1/2012 9:30 AM, [hidden email] wrote: > Hi @all, > > still trying to get NetRexx running - but no way - i'm thinking of the good > old past times where REXX just runs by typing rexx<rexx-programfilename> > > My environment: > I use the newest package called NetRexx-3.01RC2.zip > OS installed: Windows Server 2008 R2 x64 > Java-Version used: java version "1.6.0_30" > Java(TM) SE Runtime Environment (build > 1.6.0_30-b12) > Java HotSpot(TM) Client VM (build 20.5-b03, mixed > mode, sharing) > Java is installed here: C:\Program Files (x86)\Java\jre6 > The NetRexxC.jar ist here: C:\Program Files (x86)\Java\jre6\lib > NetRexx is installed here: C:\NetRexx > my PATH-variable contains: ...;C:\NetRexx\bin > > There is no CLASSPATH-variable and according to some java-forums it seems > not recommended to create one anymore. > > I'm working page per page with the book "NetRexx User Guide September > 1st,2011 Version 3.01", currently hanging on page 21. > If i try to run the hello.nrx program, this happens: > > C:\NetRexx\examples\ibm-historic>nrc -run hello.nrx > Exception in thread "main" java.lang.NoClassDefFoundError: > org/netrexx/process/NetRexxC > Caused by: java.lang.ClassNotFoundException: org.netrexx.process.NetRexxC > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > Could not find the main class: org.netrexx.process.NetRexxC. Program will > exit. > > Does anyone can help me? > > Thanks in advance, > > Kind regards, > Christian Schaper > > _______________________________________________ > 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/ |
In reply to this post by ThSITC
Thomas,
Talk about putting your money where your mouth is... You are the best! This is about the greatest, finest example of NetRexx support that I've ever seen. God Bless. P.S, I do the same madness at work with our customers. Works every time. Have a good day, Sir. On 05/01/12 16:57, Thomas Schneider wrote: > Hi Christian, > > You will have to put the NetRexxC.jar into the ...\lib\ext\ subdirectory of > of your proper JDK. > > I use this technique for years to avaid the need o any classpath at all! > > When that does not work, give me a phone call tomorrow, 10:00 - 19:00 > o'clock: +43/1/20 85 195 > > and we can check it out whilst you and I are on the computer :-) > > Thomas Schneider, Vienna, Austria. > ======================================================== > > > Am 01.05.2012 18:30, schrieb [hidden email]: >> Hi @all, >> >> still trying to get NetRexx running - but no way - i'm thinking of the >> good >> old past times where REXX just runs by typing rexx<rexx-programfilename> >> >> My environment: >> I use the newest package called NetRexx-3.01RC2.zip >> OS installed: Windows Server 2008 R2 x64 >> Java-Version used: java version "1.6.0_30" >> Java(TM) SE Runtime Environment (build >> 1.6.0_30-b12) >> Java HotSpot(TM) Client VM (build 20.5-b03, mixed >> mode, sharing) >> Java is installed here: C:\Program Files (x86)\Java\jre6 >> The NetRexxC.jar ist here: C:\Program Files (x86)\Java\jre6\lib >> NetRexx is installed here: C:\NetRexx >> my PATH-variable contains: ...;C:\NetRexx\bin >> >> There is no CLASSPATH-variable and according to some java-forums it seems >> not recommended to create one anymore. >> >> I'm working page per page with the book "NetRexx User Guide September >> 1st,2011 Version 3.01", currently hanging on page 21. >> If i try to run the hello.nrx program, this happens: >> >> C:\NetRexx\examples\ibm-historic>nrc -run hello.nrx >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/netrexx/process/NetRexxC >> Caused by: java.lang.ClassNotFoundException: org.netrexx.process.NetRexxC >> at java.net.URLClassLoader$1.run(Unknown Source) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(Unknown Source) >> at java.lang.ClassLoader.loadClass(Unknown Source) >> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) >> at java.lang.ClassLoader.loadClass(Unknown Source) >> Could not find the main class: org.netrexx.process.NetRexxC. Program will >> exit. >> >> Does anyone can help me? >> >> Thanks in advance, >> >> Kind regards, >> Christian Schaper >> >> _______________________________________________ >> 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/ |
Today I discovered that you have to have the very subdirectory for tools.jar in the classpath in order for netrexxc to find javac
This is a nice list of your CLASSPATH:
.
/media/2f4b8239-4437-4487-8850-12e240f34e98/netrexx/lib/NetRexxC.jar
/media/2f4b8239-4437-4487-8850-12e240f34e98/
/usr/lib/jvm/java-6-openjdk/*
/usr/lib/jvm/java-6-openjdk/lib/*
Without that last line nrc failed by not finding the javac compiler.
|
Free forum by Nabble | Edit this page |