I have a problem here: I have Java code written in Java1.1.6, it compiles
fine under Java1.2 JVM. However, when I ran the program, I got the following
error:
java.lang.NoClassDefFoundError: com/sun/java/util/collections/Comparable
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:404)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
at java.lang.ClassLoader.loadClass(ClassLoader.java:281)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:275)
at java.lang.ClassLoader.loadClass(ClassLoader.java:238)
at paralogic.http.HTTPServer.run(HTTPServer.java:1058)
at java.lang.Thread.run(Thread.java:485)
What do you guys think?
> java.lang.NoClassDefFoundError: com/sun/java/util/collections/Comparable
It seems you rely on Sun's 1.1-compatible backported Collections
library - you need to add it to the classpath when running, not just
when compiling.
--
Tor Iver Wilhelmsen <to...@multinett.no>
Within the valley of shadowless death they pray for thunderclouds and rain;
But to the multitude who stand in the rain Heaven is where the Sun shines.
- Tony Banks: Mad Man Moon