JRE 1.7 – java version – returns: java/lang/NoClassDefFoundError: java/lang/Object

When running any java application, or just ‘java’, the jvm fails:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

Here is a list of wrong answers:

  1. The correct Java home directory, including the /bin directory, is on the global PATH
  2. JAVA_HOME is set correctly
  3. Executing the command java -fullversion works$ java -fullversion ./java full version "1.7.0_05-b05"
  4. The symbolic links in /usr/java all point to the correct java installation
  5. I did not install any ‘default’ java when I created the system
  6. java -version fails…same error as above
  7. Issuing the commands from under the directory structure of the java installation does not work either
  8. This is 64-bit java for a 64-bit

Any ideas?

Leave a Comment