PDA

View Full Version : Eclipse forgets which java to use



Amablue
October 1st, 2006, 07:40 AM
I'm not sure if this is a problem with Ubuntu itself or just eclipse, but when I start up eclipse to do some programming, it uses the wrong Java. When I look under the installed JRE's it only has java 1.4 listed when I should be using 1.5. I have to run a search to find the other ones (I have four versions installed total for some reason). Once I select the right one and save my settings it works fine, but the next time I start up the computer it seems to revert back to the old settings and forget those other Java versions are even there.

Also, here's what I get when I type java -version:

alex@Shigeru:~$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

marcomangiante
October 1st, 2006, 08:19 AM
Hello,

please see if this how-to can help you to resolve the problem:

http://www.ubuntuforums.org/showthread.php?t=201378&highlight=eclipse

--
Regards,

Marco Mangiante