Distributable NetRexx Java application

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Distributable NetRexx Java application

gpatrick
This post has NOT been accepted by the mailing list yet.
As a test using NetRexx 3.03GA

$ java -fullversion
openjdk full version "1.7.0_21-b30"

$ cat hello.nrx
say 'hello'

$ cat manifext.mf
Manifest-Version: 1.0
Main-Class: hello
<blank line>

$ jar -cvfm hello.jar manifest.mf NetRexxR.jar hello.class
added manifest
adding: NetRexxR.jar(in = 37241) (out= 34760)(deflated 6%)
adding: hello.class(in = 423) (out= 292)(deflated 30%)

$ java -jar hello.jar
Exception in thread "main" java.lang.NoClassDefFoundError: netrexx/lang/RexxIO
           at hello.main(hello.nrx:1)
Caused by: java.lang.ClassNotFoundException: netrexx.lang.RexxIO
            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:425)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
            ... 1 more