Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3276
| 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 | creating a simple executable jar containing ruby code |
| Date | Wed, 20 Apr 2011 18:50:52 -0500 |
| Organization | Service de news de lacave.net |
| Lines | 31 |
| Message-ID | <2bf7e4bcaf1dfc9253c20e9462cb8e81@ruby-forum.com> (permalink) |
| NNTP-Posting-Host | bristol.highgroove.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | talisker.lacave.net 1303343603 56934 65.111.164.187 (20 Apr 2011 23:53:23 GMT) |
| X-Complaints-To | abuse@lacave.net |
| NNTP-Posting-Date | Wed, 20 Apr 2011 23:53:23 +0000 (UTC) |
| 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 | 381960 |
| X-Ml-Name | ruby-talk |
| X-Rubymirror | Yes |
| X-Ruby-Talk | <2bf7e4bcaf1dfc9253c20e9462cb8e81@ruby-forum.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:3276 |
Show key headers only | View raw
Hi,
I'm a relative noobie ruby dev and I was poking around with rawr. I
wrote a simple .rb file and then used rawr to package it into a jar but
have run into some errors.
I have brought it down to bare bones to understand how this all works
so I have one ruby file called rubytest.rb.
I ran
> rake rawr:jar
which produces a package/jar/Test.jar for me. All very well and good
until I try to execute the jar with
>java -jar package/jar/Test.jar.
This gives me and error of:
$ java -jar package/jar/Tests.jar
Exception in thread "main" org.jruby.exceptions.RaiseException:
(LoadError) no such file to load -- main
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at #<Class:0x100ac06d4>.(root)(<script>:1)
I'm not sure what is wrong, am I missing something here?
thanks
--
Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — 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