1832990 Members
2492 Online
110048 Solutions
New Discussion

setup java enviornent

 
SOLVED
Go to solution
hangyu
Regular Advisor

setup java enviornent

When I want to open the sql port , it pop the error "Error occurred during initialization of VM" , I have already setup the PATH and JAVA_HOME as below , but still not work , can advise what is wrong ? thx



PATH=/usr/java/j2sdk1.4.2_02/bin:$PATH
Java Location:
/usr/java/j2sdk1.4.2_02/bin
export JAVA_HOME=/usr/java/j2sdk1.4.2_02
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: setup java enviornent

Shalom,


Suggestions
1) Make arure there is something in the JAVA_HOME directory.
2) See that the java installation itself is not corrupt and has appropriate patches
3) Try compiling a simple java program like hello world to test your environment.
4) JAVA_PATH ? Seems I did this once.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
hangyu
Regular Advisor

Re: setup java enviornent

thx reply,

I tried but not work

I have a founding , when run "java -version" , it pop

Error occurred during initialization of VM
Unable to load native library: /usr/java/j2sdk1.4.2_02/jre/lib/i386/libjava.so: sy
mbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference



can advise what is wrong ? thx
Alzhy
Honored Contributor

Re: setup java enviornent

CLASSPATH

I think you will need to define it as well... as java libraries...

Hakuna Matata.
hangyu
Regular Advisor

Re: setup java enviornent

thx reply ,

it is strange , CLASSPATH set to the java path , but stlll not work ... ,
I have another server , hv the same settings but it is work , can advise if I want to totally copy all the environment setting ( eg. $PATH , $SET , export ) from one server to another server ? thx
Yogeeraj_1
Honored Contributor

Re: setup java enviornent

hi,

you can run the "env" command on both servers and compare the outputs!

you will be able to identify the missing environment variables.

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)