go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Two ways to run eclipse
 
Subject: Two ways to run eclipse
Author: Linux
In response to: Requirements for Eclipse to run on Ubuntu?
Posted on: 01/24/2011 10:13:49 PM

For eclipse to run on Linux or Windows, there is a minimum requirement for JRE or JDK to be found.

Two ways:

Way #1: Setting environment variable $PATH via file ".bashrc"

#
# Java JRE
#
if [ -d /opt/java/jdk1.6.0_01 ]
then
  PATH=/opt/java/jdk1.6.0_01/jre/bin:$PATH
fi


Way #2: Specifically specifying the java machine
/opt/eclipse/eclipse -vm /opt/java/jdk1.6.0_01/jre/bin/java



 

> On 01/24/2011 10:01:57 PM Linux wrote:

I'm having a problem getting eclipse to run on Ubuntu. Here the step to reproduce the issue:

Step 1) Download JDK and unpack it into location:
/opt/java/jdk1.6.0_01


Step 2) Download eclipse and unpack it
tar -xzf eclipse-j2ee-europa-linux-gtk-x86_64.tar.gz
sudo mv eclipse /opt/eclipse 


Step 3) Run eclipse:
/opt/eclipse/eclipse


I get 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:
/home/foo/eclipse/jre/bin/java
'java' in your current PATH



What is wrong here? What exactly the eclipse is looking for?





References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.