rhino does not start due to a NoClassDefFoundErr
Bug #122261 reported by
Marco Fabbri
This bug report is a duplicate of:
Bug #93885: It's completely broken: missing org/mozilla/javascript/tools/shell/Main.
Edit
Remove
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.
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.
To post a comment you must log in.
I have the same error when running 'rhino' and 'rhino-jsc'
java.lang. ClassNotFoundEx ception: org.mozilla. javascript. tools.shell. Main not found in java.lang. ClassLoader$ 1{urls= [file:/ usr/share/ java/js. jar], parent=null} URLClassLoader. findClass (URLClassLoader .java:870) ClassLoader. loadClass (ClassLoader. java:359) ClassLoader$ 1.loadClass (ClassLoader. java:1333) ClassLoader. loadClass (ClassLoader. java:310) VirtualMachine. main (VirtualMachine .java:99)
at java.net.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
java.lang. ClassNotFoundEx ception: 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} URLClassLoader. findClass (URLClassLoader .java:870) ClassLoader. loadClass (ClassLoader. java:359) ClassLoader$ 1.loadClass (ClassLoader. java:1333) ClassLoader. loadClass (ClassLoader. java:310) VirtualMachine. main (VirtualMachine .java:99)
at java.net.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
I'm using SableVM as virtual machine:
ls -l /etc/alternativ es/java es/java -> /usr/bin/ java-sablevm
lrwxrwxrwx 1 root root 21 2007-06-02 12:08 /etc/alternativ