|
|
|
Not working for me either, but I seem to get a different error:
pldms@kessel:~/Development/CVS-Other/jruby$ uname -a
Linux kessel 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
pldms@kessel:~/Development/CVS-Other/jruby$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxi3260-20071123_01)
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260-20071121_15015 (JIT enabled)
J9VM - 20071121_015015_lHdSMR
JIT - r9_20071121_1330
GC - 20071031_AA)
JCL - 20071118_01
pldms@kessel:~/Development/CVS-Other/jruby$ echo $JAVA_HOME
/home/pldms/Applications/ibm-java-i386-60
pldms@kessel:~/Development/CVS-Other/jruby$ ant clean jar
Buildfile: build.xml
init:
clean:
[delete] Deleting directory /home/pldms/Development/CVS-Other/jruby/docs/api
init:
jar:
jar-jruby:
init:
extract-rdocs:
prepare:
[mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/build/classes
[mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/build/classes/jruby
[mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/build/classes/test
[mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/build/test-results
[mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/build/test-results/html
[mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/docs/api
compile.tasks:
[copy] Copying 8 files to /home/pldms/Development/CVS-Other/jruby/build/classes/jruby
[copy] Copying 21 files to /home/pldms/Development/CVS-Other/jruby/build/classes/jruby/builtin
[copy] Copying 1 file to /home/pldms/Development/CVS-Other/jruby/build/classes/jruby
check-for-optional-java4-packages:
check-for-optional-packages:
compile-jruby:
[javac] Compiling 636 source files to /home/pldms/Development/CVS-Other/jruby/build/classes/jruby
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
compile:
generate-method-classes:
[touch] Creating /home/pldms/Development/CVS-Other/jruby/build/__empty.rb
[java] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
[java] at org.jruby.runtime.ThreadContext.getCurrentFrame(ThreadContext.java:350)
[java] at org.jruby.runtime.ThreadContext.getFrameSelf(ThreadContext.java:372)
[java] at org.jruby.RubyClass.invoke(RubyClass.java:234)
[java] at org.jruby.javasupport.util.RuntimeHelpers.invokeAs(RuntimeHelpers.java:331)
[java] at org.jruby.runtime.Dispatcher$DefaultDispatcher.callMethod(Dispatcher.java:17)
[java] at org.jruby.RubyClass.invoke(RubyClass.java:224)
[java] at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:339)
[java] at org.jruby.RubyObject.callMethod(RubyObject.java:485)
[java] at org.jruby.RubyObject.equals(RubyObject.java:273)
[java] at java.util.WeakHashMap.put(Unknown Source)
[java] at org.jruby.util.collections.WeakHashSet.add(WeakHashSet.java:44)
[java] at org.jruby.RubyClass.addSubclass(RubyClass.java:357)
[java] at org.jruby.RubyClass.<init>(RubyClass.java:175)
[java] at org.jruby.RubyClass.newClass(RubyClass.java:186)
[java] at org.jruby.RubyClass.newClass(RubyClass.java:193)
[java] at org.jruby.Ruby.defineClassUnder(Ruby.java:656)
[java] at org.jruby.Ruby.defineClass(Ruby.java:612)
[java] at org.jruby.RubyThread.createThreadClass(RubyThread.java:119)
[java] at org.jruby.Ruby.initCore(Ruby.java:907)
[java] at org.jruby.Ruby.bootstrap(Ruby.java:852)
[java] at org.jruby.Ruby.init(Ruby.java:828)
[java] at org.jruby.Ruby.newInstance(Ruby.java:158)
[java] at org.jruby.Main.run(Main.java:121)
[java] at org.jruby.Main.run(Main.java:88)
[java] at org.jruby.Main.main(Main.java:79)
BUILD FAILED
/home/pldms/Development/CVS-Other/jruby/build.xml:290: The following error occurred while executing this line:
/home/pldms/Development/CVS-Other/jruby/build.xml:185: The following error occurred while executing this line:
/home/pldms/Development/CVS-Other/jruby/build.xml:156: Java returned: 1
Total time: 23 seconds
I made a change that got this working on IBM JDKs...could you retry? There were other reasons the tests didn't pass, but I didn't look into those yet.
The fix I made appears to let JRuby start up and run under IBM's JDKs. If there are additional issues running under IBM JDK (and there certainly are, since ant test does not pass) they should be filed separately.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Environment:
Linux SUSE-sma 2.6.16.54-0.2.5-bigsmp #1 SMP Mon Jan 21 13:29:51 UTC 2008 i686 i686 i386 GNU/Linux
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20071025 (SR6b))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20071005 (JIT enabled)
J9VM - 20071004_14218_lHdSMR
JIT - 20070820_1846ifx1_r8
GC - 200708_10)
JCL - 20071025