Z
zenko turek
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
which produces a package/jar/Test.jar for me. All very well and good
until I try to execute the jar with
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
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