Tuesday, 3 April 2007

Ubuntu + java 6 + eclipse 3.2.1

Use the command line tools (java/javac):

sudo update-alternatives --config java

and edit the /etc/jvm file.


Set Java 6 compliance
:

Window/Preferences/...

Java -> Compiler -> Compiler Compliance Level set to 6.0

Use the official JRE from SUN in Eclipse:

Window/Preferences/...

Java -> Installed JREs -> Add...

Enter path to sun's JRE, something like: /usr/lib/jvm/java-6-sun-1.6.0.00

Select it in the list of Installed JREs.

0 comments: