I downloaded eclipse on ubuntu. But when I run it it show following error.
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/awan/eclipse/jre/bin/java
java in your current PATH
Can someone help me to solve this. I don't have experience about this on ubuntu.
thanks
If you allready installed java** you need to add the Java-Path to your eclipse.ini
in my case it's located at:
there you need to add direct under the "openFile" statement, where you replace the path with your java path:
** check wether java is installed by typing the commands
or
If you are sure that java is installed, but it's not found you may have multiple versions installed, check that by:
and select installation first
I solved it by created a symbolic link
java
in/usr/bin
that points to the VM.Steps :
Downloaded the appropriate version of Oracle's JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjp
extract it to any folder. For example :
tar zxvf ~/Downloads/jdk-8u5-linux-x64.tar.gz ~/DEV
create symbolic link with name
java
:cd /usr/bin
ln -s ~/DEV/jdk1.8.0_05/bin/java java
You need to add the JDK to your PATH.
This link should help you get started.
First of all you need to set your JAVA path in .bashrc file. goto
cd ~
open .bashrc,vi .bashrc
add a line at the endexport path="path/to dir:$path"
dosource .bashrc
for changes to take effect.Then open your eclipse.ini file(if you want to locate eclipse.ini do
whereis eclipse
). open eclipse.ini,then add a lineJust copy jre and paste in eclipse folder that's it. After this just click on eclipse icon to launch eclipse. Thanks.
artifacts.xml
configuration
dropins
eclipse
eclipse.ini
features
icon.xpm
jre
p2
plugins
readme