Error occurred during initialization of VM & java/lang/NoClassDefFoundError

ascertain:tcglive:~/BUILD/bin> ./listJobs

Error occurred during initialization of VM

java/lang/NoClassDefFoundError: java/lang/Object

ascertain:tcglive:~/BUILD/bin> ./startJobServer -fg

Error occurred during initialization of VM

java/lang/NoClassDefFoundError: java/lang/Object

We've been trying to get rmiregistry started but have noticed the following discrepancy on the server.

ascertain:tcglive:~> which java

/usr/bin/java

ascertain:tcglive:~> echo $JAVA_HOME

/usr/local/j2sdk1.4.2_03

There are conflicting versions of java on this box and even though 1.4.2 has been specified in $JAVA_HOME, the environment does not seem to recognise this:

ascertain:tcglive:~> java -version

java version "1.2.2"

Solaris VM (build Solaris_JDK_1.2.2_10, native threads, sunwjit)

[878 byte] By [gururajaa] at [2007-10-2 23:53:15]
# 1
What doeswhich javasay?
MartinHilperta at 2007-7-14 16:39:07 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...