LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-05-2004, 12:59 PM   #1
Gen. Patton
LQ Newbie
 
Registered: Feb 2004
Location: Amsterdam - NL
Distribution: Ubuntu 8.04
Posts: 4

Rep: Reputation: 0
Eclipse won't work


Hi!

Since I am new to the whole Linux "experience", and I can't figure out what to do, I'm turning to you!

I recently downloaded Eclipse (Java designing program) and I can't get it to work.

When I go to the /usr/local/eclipse dir and type ./eclipse I get the error message: No Java VM was found after searching the following locations: /usr/local/eclipse/./jre/bin/java 'java' in your current PATH.

echo $PATH gives: /usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/games:/home/jeroen/bin:/usr/local/j2sdk_bn/j2sdk1.4.2/bin:/usr/local/limewire

Before I installed Eclipse, I installed the Java SDK 1.4.2

Did I mess up the PATH somewhere (now that I look at it, it seems kind of messy, or does it?)? Is Eclipse the problem?

Anyway, all help is appreciated!

TIA

BTW: I'm running Mandrake 9.2
 
Old 02-05-2004, 08:10 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Welcome to LQ.

It does sound like you haven't got the correct entry for Java in your PATH. I mistakenly added /usr/java to my path when I should have had /usr/java/j2re1.4.2_01/bin.

If you know where the java executable is then you should be able to run your java programme(s) (presuming it is a .jar file) with /path/to/java -jar filename.jar

Hope this helps.
 
Old 02-06-2004, 12:46 AM   #3
dabump
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Mandrake 9.2
Posts: 34

Rep: Reputation: 15
Hi There...try doing the following:
1) Add the /java/bin directory to your path: PATH=othervalues:/usr/java/bin
2) Export the path: export PATH
3) Set the java_home variable. I.E. JAVA_HOME=/usr/java/ (Make sure you specify the root of the java installation folder.)
4) Export JAVA_HOME
5) Type 'java' in the console, and if it loads, everyting will be okay...Then go and run eclipse.....This should work....

Cheers
Martin Coetzee (South Africa)
 
Old 02-08-2004, 07:20 AM   #4
Gen. Patton
LQ Newbie
 
Registered: Feb 2004
Location: Amsterdam - NL
Distribution: Ubuntu 8.04
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your replies, i'll try to work it out!
 
Old 02-08-2004, 08:21 AM   #5
Gen. Patton
LQ Newbie
 
Registered: Feb 2004
Location: Amsterdam - NL
Distribution: Ubuntu 8.04
Posts: 4

Original Poster
Rep: Reputation: 0
I finally got it to work!

I exported the wrong PATH (/usr/local/j2sdk_bn/j2sdk1.4.2/bin) when I should have been exporting /usr/local/j2re1.4.2_03/bin!

Thanks for the help
 
Old 02-08-2004, 09:20 AM   #6
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
You will always be able to know which java you are pathing to with this command:

$ which java
 
  


Reply



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
Eclipse Berticus Programming 2 10-03-2005 04:26 AM
Eclipse UmneyDurak Linux - Software 1 10-02-2005 01:11 AM
Start work with eclipse eduardomsilva Programming 4 02-25-2005 10:17 AM
My Eclipse shortcut wont work nightfox02 Linux - General 1 11-29-2003 01:19 PM
enter key in eclipse does not work elandoll Programming 0 10-20-2003 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:50 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration