Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3279
| From | zenko turek <zen_t@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: creating a simple executable jar containing ruby code |
| Date | 2011-04-20 19:06 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <5c21435d93b77b3b39d840b0bd175c8f@ruby-forum.com> (permalink) |
| References | <2bf7e4bcaf1dfc9253c20e9462cb8e81@ruby-forum.com> |
Sorry, just to add that I did try to run the jar file with
java -cp.:/package/jar/lib/java/jruby.jar package/jar/Test.jar
to get and exception error as :
$ java -cp .:package/jar/lib/java/jruby.jar package/jar/Tests.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
package/jar/Tests/jar
Caused by: java.lang.ClassNotFoundException: package.jar.Tests.jar
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: package/jar/Tests.jar. Program will
exit.
--
Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
creating a simple executable jar containing ruby code zenko turek <zen_t@hotmail.com> - 2011-04-20 18:50 -0500 Re: creating a simple executable jar containing ruby code zenko turek <zen_t@hotmail.com> - 2011-04-20 19:06 -0500 Re: creating a simple executable jar containing ruby code zenko turek <zen_t@hotmail.com> - 2011-04-21 14:09 -0500
csiph-web