Can't find gems...

13 views
Skip to first unread message

aetherical

unread,
Jan 23, 2009, 4:53:54 PM1/23/09
to rawr-lib
I've an app which uses gruff & prawn; it runs just fine either in MRI
or JRuby, so I'm wanting to package it up using rawr.

I've done my install, and modified the config file.
I've unpacked gems (more about this below)
I've done a rake rawr:jar
When I do my java -jar JARFILE, it comes back and says it can't find
prawn, which has been unpacked and compiled.


More about the unpacking -- a number of gems wouldn't compile due to
the '-' issue, basically compiling the tests failed. So, I nuked the
test/spec directories and recompiled. Doing this I was able to make a
jar. However, it didn't find the gem, so I renamed the directories,
stripping out the versioning, and recompiled (after removing the
*_minus_* directories) Still can't find the gem.

Do I need to do anything special for it to find it? Is it an issue
that I'm using doing a require 'rubygems' ?
I could create a custom jruby-complete jar, where I've embedded the
gems, but I'm sure I'm missing something.

Thanks in advance,
Matt

Logan Barnett

unread,
Jan 23, 2009, 5:00:46 PM1/23/09
to rawr...@googlegroups.com
Matt,
You have to put the gems on your load path.

If the dash thing is a problem, I'd lean on the JRuby team a little
(or see about submitting a patch) for http://jira.codehaus.org/browse/JRUBY-3247
Reply all
Reply to author
Forward
0 new messages