calin_ionut
June 25th, 2011, 09:31 PM
Hello! I have a problem...i want to use sun java and eclipse in ubuntu 11.04 and the problem is that eclipse is not starting:
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/home/calin/Applications/eclipse-jdk/jre/bin/java
java in your current PATH
what i do:
Delete all installations of Java.
Install the Java SDK (self-extracting) into /opt/jdk1.6.0_26
Create a symbolic link: ln -s /opt/jdk1.6.0_26 /opt/jdk
Edit $HOME/.bashrc:
JAVA_HOME=/opt/jdk
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
Logout and log back in.
In console if i use the command
java -version
the result is
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
so that`s mean the java is set correct in my PATH
So what could be the problem????:confused:
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/home/calin/Applications/eclipse-jdk/jre/bin/java
java in your current PATH
what i do:
Delete all installations of Java.
Install the Java SDK (self-extracting) into /opt/jdk1.6.0_26
Create a symbolic link: ln -s /opt/jdk1.6.0_26 /opt/jdk
Edit $HOME/.bashrc:
JAVA_HOME=/opt/jdk
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
Logout and log back in.
In console if i use the command
java -version
the result is
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
so that`s mean the java is set correct in my PATH
So what could be the problem????:confused: