Re: [jruby-dev] java.lang.NullPointerException at Ruby.getClass method

2010-03-18 Thread Ahmed Ragab Nabhan
Thank you very much, Charlie! I tried it and it worked fine. Best wishes, Ahmed Nabhan Quoting Charles Oliver Nutter head...@headius.com: Up until a commit yesterday, a java_require line was *required* in the file so it would know what .rb file to load to prepare your MyRubyClass on the

Re: [jruby-dev] java.lang.NullPointerException at Ruby.getClass method

2010-03-17 Thread Charles Oliver Nutter
Up until a commit yesterday, a java_require line was *required* in the file so it would know what .rb file to load to prepare your MyRubyClass on the Ruby side of things. But I committed a change yesterday so that if there's no java_require, it will actually produce a free-standing .class. Can

[jruby-dev] java.lang.NullPointerException at Ruby.getClass method

2010-03-16 Thread Ahmed Ragab Nabhan
Hi Developers, I have used the simple utility jrubyc that compiles a .rb file into .java. When I try to run the resulting .class file, I got got an exception: $java -cp /.rvm/rubies/jruby-head/lib/jruby.jar:. MyRubyClass Exception in thread main java.lang.ExceptionInInitializerError