LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 03-14-2007, 06:32 AM   #1
h3x0r
LQ Newbie
 
Registered: Mar 2007
Location: 10.1.1.1
Distribution: Crux[main],Gentoo[Experimental]
Posts: 28

Rep: Reputation: 15
Help!: Installing Eclipse and Java on UBUNTU 6.10


Hey i just downloaded The Eclipse SDK and it requires either the java SDK or jRE installed. This is what it says:
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:
/usr/lib/j2sdk1.4-sun/bin/java

i downloaded the latest version from the java site.

I entered commands into my terminal after install:

[sudo apt-get install java-common]

And it comes up with..

Reading package lists... Done
Building dependency tree
Reading state information... Done
java-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 136 not upgraded.

im guessing this means i have the newest version installed, but i dont know how i can link it with eclipse??? i have managed to install the jre6 using the terminal but dont know where to go from there, my files are in my home drive.. Thanks in advance..

Last edited by h3x0r; 03-14-2007 at 06:42 AM.
 
Old 03-15-2007, 03:37 PM   #2
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 128Reputation: 128
So how exactly did you get and install java and eclipse? From the repositories? From another site? I installed both from the repositories and that's all I had to do.

On Fedora I used the packages from sun and eclipse.org instead. To get eclipse to work, I set the proper path in /etc/profile.
In /etc/profile, you would add this:
JAVA_HOME=/path/to/jdk
export JAVA_HOME

You can do that from the command line like this:
echo JAVA_HOME=/path/to/jdk >> /etc/profile
echo export JAVA_HOME >> /etc/profile

Then you need to log out or do
source /etc/profile

And then (as root) you can check whether the path is correct by doing:
echo $JAVA_HOME

Btw, if you're using eclipse 3.2.2, don't be surprised if it crashes at start-up, it has a bug.

Last edited by jay73; 03-15-2007 at 03:38 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Java using Ubuntu rorymanninguk Linux - Software 2 01-09-2007 08:32 PM
Installing JAVA SDK and Eclipse Developing Environment for testing kushalkoolwal Debian 3 03-20-2006 01:11 AM
JAVA:problem in installing ECLIPSE SDk on LINUX nedian123 Programming 1 06-26-2004 09:37 PM
Installing eclipse with alternate java location oberonix Linux - Newbie 1 04-06-2004 07:02 AM


All times are GMT -5. The time now is 12:30 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration