Hi!

Im trying to run JDK 1.5 64 bits on OpenSolaris 2009.06 64 bits which comes 
with JRE 1.6 by default. 

What I've done till now is to change the JAVA_HOME amd PATH variable on 
".profile" to the File where I extracted the JDK 1.5 that is: 
"/opt/jdk1.5.0_22". So my ".profile" is like this:

export PATH=/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin:
export PATH=/opt/jdk1.5.0_22/bin/amd64:$PATH
export MANPATH=/usr/gnu/share/man:/usr/share/man:/usr/X11/share/man
export PAGER="/usr/bin/less -ins"
export LD_LIBRARY_PATH=/opt/jdk1.5.0_22/jre/lib
export JAVA_HOME=/opt/jdk1.5.0_22/

I had to add the termination "/amd64" on PATH 'cause the executables are inside 
that file.

Well, after doing that and rebooting I got the following message when I try to 
run the Hello World:

servi...@servidor-os-pc:~/Documents$ java JavaTest.java 
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

Well, but when I use the command "which java" I receive the message:

servi...@servidor-os-pc:~/Documents$ java JavaTest.java 
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

But when I put the command "java -version" it gives:

servi...@servidor-os-pc:~/Documents$ java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

The same message as in the HelloWorld.

Any idea?

By the way, Im doing this on a fresh installation of Opensolaris 2009.06 64bits.

Thnks!

--
JCrx,

Mind Wide Open
Be OpenSource
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to