I've created a program using NetRexx and it works great on a server where NexRexx is already installed, but when I run it on another server that isn't installed with NetRexx it gives:
# java mksysb Exception in thread "main" java.lang.NoClassDefFoundError: netrexx/lang/Rexx at mksysb.<clinit>(mksysb.nrx:1) Caused by: java.lang.ClassNotFoundException: netrexx.lang.Rexx at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 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:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 1 more Do I have to install NetRexx on each server to run the application? Or how do I make my application distributable for hundreds of servers? |
Hi,
every program that has been compiled to .class format using NetRexx needs at least the NetRexx runtime on the classpath. The runtime is packaged in the file NetRexxR.jar; you can put this on the classpath of the target machine, or include its classes in your own jar. best regards, René Jansen. On 2 okt. 2013, at 16:37, gpatrick <[hidden email]> wrote: > I've created a program using NetRexx and it works great on a server where > NexRexx is already installed, but when I run it on another server that isn't > installed with NetRexx it gives: > > # java mksysb > Exception in thread "main" java.lang.NoClassDefFoundError: netrexx/lang/Rexx > at mksysb.<clinit>(mksysb.nrx:1) > Caused by: java.lang.ClassNotFoundException: netrexx.lang.Rexx > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > 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:423) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:356) > ... 1 more > > Do I have to install NetRexx on each server to run the application? Or how > do I make my application distributable for hundreds of servers? > > > > -- > View this message in context: http://ibm-netrexx.215625.n3.nabble.com/Exception-error-netrexx-lang-Rexx-tp4026792.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/ |
Added NetRexxR.jar to the CLASSPATH. Thanks.
|
In reply to this post by rvjansen
If NetRexxR.jar cannot be distributed with the application it can be
coded as a "binary" class without using NetRexx specific facilities such as "say" to remove that requirement. -- Kermit On 10/2/2013 7:43 AM, René Jansen wrote: > Hi, > > every program that has been compiled to .class format using NetRexx needs at least the NetRexx runtime on the classpath. The runtime is packaged in the file NetRexxR.jar; you can put this on the classpath of the target machine, or include its classes in your own jar. > > best regards, > > René Jansen. > > On 2 okt. 2013, at 16:37, gpatrick <[hidden email]> wrote: > >> I've created a program using NetRexx and it works great on a server where >> NexRexx is already installed, but when I run it on another server that isn't >> installed with NetRexx it gives: >> >> # java mksysb >> Exception in thread "main" java.lang.NoClassDefFoundError: netrexx/lang/Rexx >> at mksysb.<clinit>(mksysb.nrx:1) >> Caused by: java.lang.ClassNotFoundException: netrexx.lang.Rexx >> at java.net.URLClassLoader$1.run(URLClassLoader.java:366) >> 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:423) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:356) >> ... 1 more >> >> Do I have to install NetRexx on each server to run the application? Or how >> do I make my application distributable for hundreds of servers? >> >> >> >> -- >> View this message in context: http://ibm-netrexx.215625.n3.nabble.com/Exception-error-netrexx-lang-Rexx-tp4026792.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/ > > > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |