Java error in Solaris 9

Hi folks,

I had a sparc machine with Solaris9 and built in java1.4.2
I installed Java1.5 on top of it by running the file jre-1_5_0_22-solaris-sparcv9.sh

Now when I run the java application, I get the following error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

When I run java -fullversion, I get proper output
java full version "1.5.0_22-b03"

But wen i run java -version, I get the same error repeated.

 
lsun7083 /usr/jdk/jre1.5.0_22/bin/sparcv9-> find / -name rt.jar
/usr/j2se/jre1.6.0_24/lib/rt.jar
/usr/java1.2/jre/lib/rt.jar

I am a newbie to IT field. Kindly help

Regards
Manu

What's the output from this:

find /usr/jdk/jre1.5.0_22 -name java

Offhand, I think you have to install the Solaris sparc JRE to get the base 32-bit install, then install the sparcv9 on top to get the 64-bit install.

1 Like

Thanx achenle...
That was a life saver.

Now java -version is coming correctly.

I linked the new location to /usr/bin/java

 
lsun7083 -> rm /usr/bin/java
lsun7083 -> ln -s /usr/jdk15/java15/jre1.5.0_22/bin/java /usr/bin/java

But wen i run the application, I get the JRE error again.

lsun7083 /Solaris_sparc-> ./installer
Unable to access a usable display on the remote system. Continue in command-line mode?(Y/N)
Y
JDK 1.5.0 Runtime Environment not found. Installer aborting

I have added the path variable in /.profile file also.

Please do help.