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

2010-03-18 Thread Charles Oliver Nutter
FYI, the jrubyc --java support is still a bit experimental, but it works and I'm hoping folks like you can provide feedback. It's part of that "last mile" for JRuby/Java integration, so I think it's a pretty important feature. Let me know how it goes! On Thu, Mar 18, 2010 at 8:29 AM, Ahmed Ragab

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 : 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

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 Ca