rhino does not start due to a NoClassDefFoundErr

Bug #122261 reported by Marco Fabbri
6
Affects Status Importance Assigned to Milestone
rhino (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: rhino

Entering the command rhino on a console produce the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/tools/shell/Main

The js.jar rhino archive in /usr/share/java is lacking the tools subdir. The archive seems not to have been produced by the "jar" target of the ant build file.

Revision history for this message
Sébastien Pierre (sebastien-type-z) wrote :

I have the same error when running 'rhino' and 'rhino-jsc'

java.lang.ClassNotFoundException: org.mozilla.javascript.tools.shell.Main not found in java.lang.ClassLoader$1{urls=[file:/usr/share/java/js.jar], parent=null}
   at java.net.URLClassLoader.findClass (URLClassLoader.java:870)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:359)
   at java.lang.ClassLoader$1.loadClass (ClassLoader.java:1333)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:310)
   at java.lang.VirtualMachine.main (VirtualMachine.java:99)

java.lang.ClassNotFoundException: org.mozilla.javascript.tools.jsc.Main not found in java.lang.ClassLoader$1{urls=[file:/usr/share/java/./,file:/usr/share/java/js.jar], parent=null}
   at java.net.URLClassLoader.findClass (URLClassLoader.java:870)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:359)
   at java.lang.ClassLoader$1.loadClass (ClassLoader.java:1333)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:310)
   at java.lang.VirtualMachine.main (VirtualMachine.java:99)

I'm using SableVM as virtual machine:

ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 21 2007-06-02 12:08 /etc/alternatives/java -> /usr/bin/java-sablevm

Revision history for this message
Marco Fabbri (mrfabbri) wrote :

As a temporary workaround, in the meanwhile the bug gets fixed, I downloaded the Rhino 1.6R5 realease from the official site (http://www.mozilla.org/rhino/download.html) and replaced the js-1.6R5.jar in /usr/share/java with the js.jar from the official realease.

Revision history for this message
CL (christian-lawrence-deactivatedaccount) wrote :

I believe this to be a dup of #93885

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.