Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3279

Re: creating a simple executable jar containing ruby code

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail
From zenko turek <zen_t@hotmail.com>
Newsgroups comp.lang.ruby
Subject Re: creating a simple executable jar containing ruby code
Date Wed, 20 Apr 2011 19:06:15 -0500
Organization Service de news de lacave.net
Lines 22
Message-ID <5c21435d93b77b3b39d840b0bd175c8f@ruby-forum.com> (permalink)
References <2bf7e4bcaf1dfc9253c20e9462cb8e81@ruby-forum.com>
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1303344434 58690 65.111.164.187 (21 Apr 2011 00:07:14 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Thu, 21 Apr 2011 00:07:14 +0000 (UTC)
In-Reply-To <2bf7e4bcaf1dfc9253c20e9462cb8e81@ruby-forum.com>
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 381963
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <5c21435d93b77b3b39d840b0bd175c8f@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:3279

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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