LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 03-14-2007, 07:32 AM   #1
h3x0r
LQ Newbie
 
Registered: Mar 2007
Location: 10.1.1.1
Distribution: Crux[main],Gentoo[Experimental]
Posts: 29
Thanked: 0
Help!: Installing Eclipse and Java on UBUNTU 6.10


[Log in to get rid of this advertisement]
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 07:42 AM..
h3x0r is offline     Reply With Quote
Old 03-15-2007, 04:37 PM   #2
jay73
Senior Member
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 8.04 / 9.04
Posts: 4,781
Thanked: 89
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 04:38 PM..
jay73 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


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


All times are GMT -5. The time now is 04:52 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration