LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   setup java environment (https://www.linuxquestions.org/questions/linux-software-2/setup-java-environment-503316/)

sunhui 11-20-2006 11:50 AM

setup java environment
 
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

reddazz 11-20-2006 11:59 AM

Take a look at post 4 in this thread.

sunhui 11-20-2006 12:11 PM

Quote:

Originally Posted by reddazz
Take a look at post 4 in this thread.


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

sunhui 11-20-2006 05:17 PM

thx reply ,

it is strange , I also set the CLASSPATH 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

reddazz 11-22-2006 03:57 AM

I've done a bit of searching and it seems like its a bug that affects some Redhat based distros. Have you tried using Java 5 (jdk 1.5).


All times are GMT -5. The time now is 11:50 AM.