go to  ForumEasy.com   
JavaPro  
 
 
   Home  |  MyForum  |  FAQ  |  Archive    You are not logged in. [Login] or [Register]  
Forum Home » Java JRE/VM » Requirements for Eclipse to run on Ubuntu?
Email To Friend  |   Set Alert To This Topic Rewarding Points Availabe: 0 (What's this) New Topic  |   Post Reply
Author Topic: Requirements for Eclipse to run on Ubuntu?
Linux
member
offline   
 
posts: 120
joined: 01/24/2011
from: San Jose, CA
  posted on: 01/24/2011 10:01:57 PM    Edit  |   Quote  |   Report 
Requirements for Eclipse to run on Ubuntu?
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?

 Profile | Reply Points Earned: 0
Linux
member
offline   
 
posts: 120
joined: 01/24/2011
from: San Jose, CA
  posted on: 01/24/2011 10:13:49 PM    Edit  |   Quote  |   Report 
Two ways to run eclipse
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


 Profile | Reply Points Earned: 0

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