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 |
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. |
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) |
Thanks for your replies, i'll try to work it out!
|
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 |
You will always be able to know which java you are pathing to with this command:
$ which java |
All times are GMT -5. The time now is 08:53 PM. |