Hello,
Is JRuby supposed to work with gij? It would be probably slow even if
it did but it throws an exception at the very start.
$ java --version
java version “1.5.0”
gij (GNU libgcj) version 4.3.0 20080202 (experimental) [trunk revision
132072]
Copyright © 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
$ jruby --version
ruby 1.8.6 (2008-03-18 rev 6255) [i386-jruby1.1RC3]
Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: -1
at
org.jruby.runtime.ThreadContext.getCurrentFrame(ThreadContext.java:350)
at
org.jruby.runtime.ThreadContext.getFrameSelf(ThreadContext.java:372)
at org.jruby.RubyClass.invoke(RubyClass.java:232)
at
org.jruby.javasupport.util.RuntimeHelpers.invokeAs(RuntimeHelpers.java:322)
at
org.jruby.runtime.Dispatcher$DefaultDispatcher.callMethod(Dispatcher.java:17)
at org.jruby.RubyClass.invoke(RubyClass.java:222)
at
org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:330)
at org.jruby.RubyObject.callMethod(RubyObject.java:481)
at org.jruby.RubyObject.equals(RubyObject.java:271)
at java.util.AbstractMap.equals(libgcj.so.90)
at java.util.WeakHashMap.internalGet(libgcj.so.90)
at java.util.WeakHashMap.put(libgcj.so.90)
at org.jruby.util.collections.WeakHashSet.add(WeakHashSet.java:44)
at org.jruby.RubyClass.addSubclass(RubyClass.java:355)
at org.jruby.RubyClass.(RubyClass.java:173)
at org.jruby.RubyClass.newClass(RubyClass.java:184)
at org.jruby.RubyClass.newClass(RubyClass.java:191)
at org.jruby.Ruby.defineClassUnder(Ruby.java:655)
at org.jruby.Ruby.defineClass(Ruby.java:611)
at org.jruby.RubyBoolean.createFalseClass(RubyBoolean.java:71)
at org.jruby.Ruby.initCore(Ruby.java:890)
at org.jruby.Ruby.bootstrap(Ruby.java:851)
at org.jruby.Ruby.init(Ruby.java:827)
at org.jruby.Ruby.newInstance(Ruby.java:157)
at org.jruby.Main.run(Main.java:121)
at org.jruby.Main.run(Main.java:88)
at org.jruby.Main.main(Main.java:79)
Thanks
Michal