Package: jruby Version: 1.4.0-1 Severity: important The JRuby installation fails when used with the java5 runtime even though the package claims support
~$ dpkg -p jruby | grep Depends Depends: openjdk-6-jre | java5-runtime | java6-runtime ~$ jruby -e "puts 'hello'" hello ~$ JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun jruby -e "puts 'hello'" Error: Some library (perhaps JRuby) was built with a later JVM version. Please use libraries built with the version you intend to use or an earlier one. Specify -w for full UnsupportedClassVersionError stack trace ~$ dpkg -S /usr/lib/jvm/java-1.5.0-sun sun-java5-bin: /usr/lib/jvm/java-1.5.0-sun ~$ It seems that some classes in /usr/lib/jruby/lib/jruby.jar have been compiled for the 1.6 class file format: /tmp$ jar xf /usr/lib/jruby/lib/jruby.jar /tmp$ find org -name '*class' | xargs file -b | sort -u compiled Java class data, version 46.0 (Java 1.2) compiled Java class data, version 47.0 (Java 1.3) compiled Java class data, version 49.0 (Java 1.5) compiled Java class data, version 50.0 (Java 1.6) /tmp$ find org -name '*class' | xargs file | grep '1.6' | tail -1 org/jruby/RubyBigDecimal$i_method_0_0$RUBYINVOKER$op_uminus.class: compiled Java class data, version 50.0 (Java 1.6) It would be nice if we could run it all on the 1.5 VM like the upstream tarballs! Or at least have the dependenc corrected! Cheers! Shyamal -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.30-2-686-bigmem (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages jruby depends on: ii default-jre [java6-runtime] 1.6-34 Standard Java or Java compatible R ii openjdk-6-jre [java6-runtim 6b16-1.6.1-2 OpenJDK Java runtime, using Hotspo ii sun-java5-jre [java5-runtim 1.5.0-19-1 Sun Java(TM) Runtime Environment ( ii sun-java6-jre [java6-runtim 6-16-1 Sun Java(TM) Runtime Environment ( jruby recommends no packages. jruby suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org