I am currently trying to make an application using the monkeybars
library. I got rawr to create a working jar file. To do this I had to
get the "load-path-fix" branch of rawr (https://github.com/rawr/rawr/
tree/load-path-fix). Now if I run "java -jar package/jar/demo.jar", my
application works, but if I go to the directory of the jar itself, and
run "java -jar demo.jar" I still get the following error:
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:0x3ec19fbf>.(root)(<script>:1)
I also get this error when I create an app (or exe) and try to run
them. How can I solve these problems?
Thanks in advance.
I will look at this.
James
I thought this may have been related to this bug:
http://jira.codehaus.org/browse/JRUBY-6119
I get the same behavior with earlier versions of JRuby so I'm not sure
if this is really the cause or if something borky was introduced to rawr.
I need to try rawr with the trunk version of JRuby.
I also tried added code to Rawr that would update the META/MANIFEST.MF
to list all the files in the jar, but I apparently suck at that.
I cannot find a decent reference that explains the specifics of what
these entries should look like. Anybody know of one?
James