LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-01-2007, 08:22 AM   #1
carlyno
LQ Newbie
 
Registered: Oct 2006
Location: Bordeaux
Distribution: Gentoo 2006
Posts: 25

Rep: Reputation: 15
trouble running Eclipse


Hi all !
I've just installed Eclipse, with the required packages obviously, but when I run the IDE.... error message : "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"
Well, the message is clear enough: no JRE or JDK... but :
Code:
# aptitude search jdk
p   sun-java5-jdk                   - Sun Java(TM) Development Kit (JDK) 5.0
c   sun-java6-jdk                   - Sun Java(TM) Development Kit (JDK) 6
# aptitude search jre
p   docbook-jrefentry               - DocBook XML JRefEntry DTD
p   sun-java5-jre                   - Sun Java(TM) Runtime Environment (JRE) 5.0c   sun-java6-jre                   - Sun Java(TM) Runtime Environment (JRE) 6 (
and
Code:
apt-get install sun-java6-jdk
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
sun-java6-jdk est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
# apt-get install sun-java6-jre
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
sun-java6-jre est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
meaning that sun-java6-jre and sun-java6-jdk are already installed and are the most recent versions.
So how come Eclipse is looking for j2sdk1.4. I've checked the /usr/lib/ directory:
Code:
/usr/lib/java# ls
swt3.2-gtk.jar  swt-gtk.jar  swt.jar
Any idea about this ? Is there a specific way to install the IDE, besides using synaptic ?
 
Old 04-01-2007, 09:19 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,673

Rep: Reputation: 122Reputation: 122
Well, the missing directory is obviously the culprit. Figure out what the contents of that dir should be, find the corresponding dir in your java-tree and create a sym-link from that to /usr/lib/j2sdk1.4-sun/bin/java Like this:
Code:
ln -s </full/path/to/dir> /usr/lib/j2sdk1.4-sun/bin/java

Last edited by Dutch Master; 04-01-2007 at 09:20 AM.
 
Old 04-03-2007, 02:15 AM   #3
carlyno
LQ Newbie
 
Registered: Oct 2006
Location: Bordeaux
Distribution: Gentoo 2006
Posts: 25

Original Poster
Rep: Reputation: 15
Thanx Dutch Master for your answer.... I have to find out where the java tree is..; I first thought of /usr/lib/java, but if it so, well there's no j2sdk1.4-sun. So it's gotta be some place else; I'll check closer, but if you'd have a clue, tell me
 
Old 04-03-2007, 05:48 AM   #4
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 664
Blog Entries: 11

Rep: Reputation: 36
If you don't mind using synaptic, you can click on the name of the already installed package and then click on 'properties'. There you can see a list of all the files installed. The directory you're looking for would have to be one of those...
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
running tomcat with eclipse as non-root javcerty Linux - Newbie 4 04-16-2009 12:09 PM
eclipse running problem Rohan_mk1 Linux - Software 0 10-27-2006 05:04 AM
error running eclipse rich_montana Linux - Software 1 11-18-2005 03:04 AM
Problem's running eclipse UmneyDurak Linux - Software 2 09-01-2004 09:29 PM
problem running Eclipse 2.1 on mandrake 9.2 nurien Linux - Software 3 01-08-2004 04:30 AM


All times are GMT -5. The time now is 05:06 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration