From: Logan Barnett Date: 2008-12-20T01:54:14+09:00 Subject: Re: RAWR can't find jruby_fetch On Dec 19, 2008, at 7:05 AM, Leslie Viljoen wrote: > On Fri, Dec 19, 2008 at 2:17 AM, Logan Barnett > wrote: > >> Leslie, >> Looks like yet another bug during the release. >> Can you create an empty jruby_fetch.rb (touch jruby_fetch.rb) in your >> project root? I tried this after reproducing the bug, and it let me >> run the >> rawr:jar task after that. >> I'll get a fix for that released on Monday. > > > Ok, did that. Then I get a message about a constant 'Java' that > doesn't > exist - this didn't happen before with 1.1.1. > Anyway, so I took that as a cue to try and run everything through > jruby like > so: > The latest Rawr is dependent on JRuby now. This weekend I'm planning on setting up Rawr to be a JRuby only gem. This is so we can ride some of JRuby's code, such as classpath name mangling for the compiler, and perhaps the compiler itself (so you don't get incompatible versions between your runtime JRuby and your environment JRuby in terms of what you compiled). > export PATH=$PATH:/home/lesliev/data/bin/netbeans-6.5/ruby2/ > jruby-1.1.4/bin > export PATH=$PATH:/home/lesliev/data/bin/netbeans-6.5/ruby2/ > jruby-1.1.4 > jruby /usr/bin/gem install -r rawr > jruby /usr/bin/rake rawr:jar > You can use jruby -S to invoke a script from JRuby's bin. For example, jruby -S gem install rawr > This seems to work, I get: > > (in /home/lesliev/monkey/ummpcomposer) > Copying non-source file compose/Composer.form to > /home/lesliev/monkey/ummpcomposer/package/classes/compose/ > Composer.form > Copying non-source file README.txt to > /home/lesliev/monkey/ummpcomposer/package/classes/README.txt > === Creating jar file: > /home/lesliev/monkey/ummpcomposer/package/jar/ChangeMe.jar > > ..but when I try and run it: > > lesliev@lesliev-laptop:~/monkey/ummpcomposer/package/jar$ java -jar > ChangeMe.jar > Exception in thread "main"