Hot questions for Using Ubuntu in jakarta ee

Top Java Programmings / Ubuntu / jakarta ee


When I open eclipse in Ubuntu it is showing the 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:
java in your current PATH

These are the Environment variables I set in .bashrc file:

export JAVA_HOME
export JRE_HOME
export PATH

I have also checked in terminal:

asr@asr-desktop:~$ java -version

java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Server VM (build 21.0-b17, mixed mode)

asr@asr-desktop:~$ which java


asr@asr-desktop:~$ echo $JAVA_HOME


asr@asr-desktop:~$ echo $PATH


The eclipse is opening via command prompt only, I have tried to specify JVM location in eclipse.ini file by adding the below line



But its not running again showing the same error jvm is not found.Can any one help me here?


This work for me edit the eclipse.ini using any text editor and change your -vm path to real path of your JDK

-vm /opt/jdk1.6.0/bin/