Re: [jruby-dev] null object returned by Ruby.getClass method

2010-03-18 Thread Charles Oliver Nutter
On Thu, Mar 18, 2010 at 10:56 AM, Ahmed Ragab Nabhan wrote: > Hi Charlie, > > The main method defined in a ruby class is not generated properly by the > jrubyc utility. I mean the function has different signature than expected by > the JVM: > > public static Object main(Object args) > > while the

Re: [jruby-dev] null object returned by Ruby.getClass method

2010-03-18 Thread Ahmed Ragab Nabhan
Hi Charlie, The main method defined in a ruby class is not generated properly by the jrubyc utility. I mean the function has different signature than expected by the JVM: public static Object main(Object args) while the JVM looks for a different signature: public static void main(String[]

Re: [jruby-dev] null object returned by Ruby.getClass method

2010-03-17 Thread Charles Oliver Nutter
On Tue, Mar 16, 2010 at 10:39 AM, Ahmed Ragab Nabhan wrote: > 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: > $ jrubyc --java myruby.rb > javac -d /Users/anabhan/Work/Workspace/JavaRuby -cp > /Use