Can't create working app or exe, "no such file to load -- main"

97 views
Skip to first unread message

kvdenden

unread,
Dec 15, 2011, 5:25:03 AM12/15/11
to rawr-lib
Hello,

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.

James Britt

unread,
Dec 15, 2011, 1:23:34 PM12/15/11
to rawr...@googlegroups.com

I will look at this.


James

James Britt

unread,
Dec 19, 2011, 8:08:33 PM12/19/11
to rawr...@googlegroups.com
An update:

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

Reply all
Reply to author
Forward
0 new messages