Problem trying to run Eclipse for the first time
I get an Error of "JVM TERMINATED. Exit code =1" in /usr/bin/java
RHEL4 What I've done: I downloaded the JRE 1.4.2.13 from sun. I installed it by setting the proper permission and doing a ./filename. I accepted the EULA and let it install. I then rebooted. Next I downloaded Eclipse 3.1.0 which is targeted to run on J2RE SE 1.4 which I downloaded. I then double clicked the executable file. I also tried doing a ./eclipse. I then get the same error when trying to open the file both ways.What am I not doing? |
You could be running gcj instead of Sun java. What is the output of doing,
Code:
$java -version |
java version "1.4.2"
gcj (GCC) 3.4.3 20041212 Red Hat 3.4.3-9.EL4 Why is not detecting Sun's Java? |
Create a script called java.sh and put the code below. Place the script in /etc/profile.d
Code:
export JAVA_HOME=/usr/java/jdk1.6.0 |
Awesome! Thanks for the help. Where do I place this script?
|
One more question. The line:
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH I don't have a /jre folder in my java folder, so can I just do export PATH=$JAVA_HOME/bin:$JAVA_HOME/bin:$PATH |
The script should go in /etc/profile.d. You can remove the jre section if you don't have it, but I have never seen a java directory without the jre subdirectory.
|
That worked! I owe you one.
Thanks |
All times are GMT -5. The time now is 01:43 AM. |