Public bug reported: The OpenJDK 7 JRE headless package does not configure the Rhino interpreter for use with JSR223 interface. (Presumably, it is not on the classpath.)
To test: Use the Jrunscript tool from the JDK (install openjdk-7-jdk), run: /usr/lib/jvm/openjdk-7-jdk/bin/jrunscript -q Expect: It should output a list of installed JSR223 interpreters, one of which is the Mozilla Rhino JavaScript interpreter: Got: Nothing. For a comparison here is what an old SUN Java 6 JDK installation reports: Run: /usr/lib/jvm/java-6-sun/bin/jrunscript -q Language ECMAScript 1.6 implemention "Mozilla Rhino" 1.6 release 2 --------------- Note that the Mozilla Rhino interpreter is definitely shipped with the OpenJDK 7 JRE headless package: dpkg -L openjdk-7-jre-headless |grep rhino /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rhino.jar System info: lsb_release -rd Description: Ubuntu precise (development branch) Release: 12.04 apt-cache policy openjdk-7-jdk openjdk-7-jdk: Installed: 7~b147-2.0-1ubuntu2 Candidate: 7~b147-2.0-1ubuntu2 Version table: *** 7~b147-2.0-1ubuntu2 0 500 http://main.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages 100 /var/lib/dpkg/status apt-cache policy openjdk-7-jre-headless openjdk-7-jre-headless: Installed: 7~b147-2.0-1ubuntu2 Candidate: 7~b147-2.0-1ubuntu2 Version table: *** 7~b147-2.0-1ubuntu2 0 500 http://main.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages 100 /var/lib/dpkg/status ** Affects: openjdk-7 (Ubuntu) Importance: Undecided Status: New ** Description changed: The OpenJDK 7 JRE headless package does not configure the Rhino interpreter for use with JSR223 interface. (Presumably, it is not on the classpath.) To test: Use the Jrunscript tool from the JDK (install openjdk-7-jdk), run: /usr/lib/jvm/openjdk-7-jdk/bin/jrunscript -q Expect: - It should output a list of installed JSR223 interpreters, one of which is the Mozilla Rhino JavaScript interpreter: + It should output a list of installed JSR223 interpreters, one of which is the Mozilla Rhino JavaScript interpreter: Got: Nothing. - For a comparison here is what an old SUN Java 6 JDK installation reports: + For a comparison here is what an old SUN Java 6 JDK installation reports: Run: /usr/lib/jvm/java-6-sun/bin/jrunscript -q Language ECMAScript 1.6 implemention "Mozilla Rhino" 1.6 release 2 --------------- Note that the Mozilla Rhino interpreter is definitely shipped with the OpenJDK 7 JRE headless package: dpkg -L openjdk-7-jre-headless |grep rhino /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rhino.jar System info: lsb_release -rd Description: Ubuntu precise (development branch) Release: 12.04 - apt-cache policy openjdk-7-jdk + apt-cache policy openjdk-7-jdk openjdk-7-jdk: + Installed: 7~b147-2.0-1ubuntu2 + Candidate: 7~b147-2.0-1ubuntu2 + Version table: + *** 7~b147-2.0-1ubuntu2 0 + 500 http://main.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages + 100 /var/lib/dpkg/status + + apt-cache policy openjdk-7-jre-headless + openjdk-7-jre-headless: Installed: 7~b147-2.0-1ubuntu2 Candidate: 7~b147-2.0-1ubuntu2 Version table: *** 7~b147-2.0-1ubuntu2 0 500 http://main.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages 100 /var/lib/dpkg/status -- You received this bug notification because you are a member of OpenJDK, which is subscribed to openjdk-7 in Ubuntu. https://bugs.launchpad.net/bugs/920214 Title: openjdk-7-jre-headless does not configure Rhino interpreter properly Status in “openjdk-7” package in Ubuntu: New Bug description: The OpenJDK 7 JRE headless package does not configure the Rhino interpreter for use with JSR223 interface. (Presumably, it is not on the classpath.) To test: Use the Jrunscript tool from the JDK (install openjdk-7-jdk), run: /usr/lib/jvm/openjdk-7-jdk/bin/jrunscript -q Expect: It should output a list of installed JSR223 interpreters, one of which is the Mozilla Rhino JavaScript interpreter: Got: Nothing. For a comparison here is what an old SUN Java 6 JDK installation reports: Run: /usr/lib/jvm/java-6-sun/bin/jrunscript -q Language ECMAScript 1.6 implemention "Mozilla Rhino" 1.6 release 2 --------------- Note that the Mozilla Rhino interpreter is definitely shipped with the OpenJDK 7 JRE headless package: dpkg -L openjdk-7-jre-headless |grep rhino /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rhino.jar System info: lsb_release -rd Description: Ubuntu precise (development branch) Release: 12.04 apt-cache policy openjdk-7-jdk openjdk-7-jdk: Installed: 7~b147-2.0-1ubuntu2 Candidate: 7~b147-2.0-1ubuntu2 Version table: *** 7~b147-2.0-1ubuntu2 0 500 http://main.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages 100 /var/lib/dpkg/status apt-cache policy openjdk-7-jre-headless openjdk-7-jre-headless: Installed: 7~b147-2.0-1ubuntu2 Candidate: 7~b147-2.0-1ubuntu2 Version table: *** 7~b147-2.0-1ubuntu2 0 500 http://main.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages 100 /var/lib/dpkg/status To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/920214/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~openjdk Post to : [email protected] Unsubscribe : https://launchpad.net/~openjdk More help : https://help.launchpad.net/ListHelp

