1837921 Members
7016 Online
110124 Solutions
New Discussion

Re: HPUX java 1.3 error

 
sfgroups
Advisor

HPUX java 1.3 error

I have installed java 1.3.1.19 on 02/13/07. Today when we run the java its giving JVM error message.

/opt/java1.3/bin/java -version
Error occurred during initialization of VM
java.lang.NoClassDefFoundError: sun/misc/Version

then I copied /opt/java1.3 to /tmp and ran java -version command, it worked!!!

/tmp/java1.3/bin/java -version
+ /tmp/java1.3/bin/java -version
java version "1.3.1.19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.19-061215-02:09)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.19-_15_dec_2006_03_05 PA2.0, mixed mode)


I copied with cp -r and find ./java1.3 -print -depth | cpio -pmvd /tmp/

Both copies worked fine, so its not permission issue.

As far as I know, nothing changed on this server.

Any idea, why we are getting that error message?

Thanks
2 REPLIES 2
tom quach_1
Super Advisor

Re: HPUX java 1.3 error

Hi Sfgroups,

with this error
java.lang.NoClassDefFoundError
most of the time CLASSPATH is the problem.

run echo $CLASSPATH to see where it pointed to
if the location is not correct.
#unset CLASPATH
and try again

Cheers,
Tom
sfgroups
Advisor

Re: HPUX java 1.3 error

I don't think its related to CLASSPATH varible, this varible not in root user environment.

$echo $CLASSPATH
$

orginal copy error message:

$/opt/java1.3-org/bin/java -version
Error occurred during initialization of VM
java.lang.NoClassDefFoundError: sun/misc/Version

copied same binary into /tmp.

cp -rp /opt/java1.3-org /tmp/

/tmp/java1.3-org/bin/java -version
java version "1.3.1.19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.19-061215-02:09)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.19-_15_dec_2006_03_05 PA2.0, mixed mode)


I may need to reboot the server to fix this problem.

Thanks