Getting ready for eclipse on Gentoo

Getting ready for eclipse 3.3 on Gentoo, I first need to get my system configured to use a more recent version of Java instead of the default 1.4.

Here is a site dedicated to gentoo java: http://www.gentoo.org/proj/en/java/

the first thing to do is emerge java


get rid of old versions
# emerge -C java-config
add the newest
# emerge -uND java-config

to see what versions are installed, do:

# java-config --list-available-vms
The following VMs are available for generation-2:
1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2) Blackdown JRE 1.4.2.03 [blackdown-jre-1.4.2]
3) Blackdown 32bit JRE 1.4.2.03 [emul-linux-x86-java-1.4.2]
4) Sun 32bit JRE 1.5.0.08 [emul-linux-x86-java-1.5]
5) Kaffe 1.1.7 [kaffe]
*) Sun JDK 1.5.0.08 [sun-jdk-1.5]

to change the jvm, do:

(By handle (preferred))
# java-config --set-system-vm blackdown-jdk-1.4
Now using blackdown-jdk-1.4 as your generation-2 system JVM
(By number)
# java-config --set-system-vm 6
Now using sun-jdk-1.5 as your generation-2 system JVM

About andy dingfelder

Andy has over 20 years of technology leadership experience in Software Testing / Development / Project Management and Team Leadership in multiple industry sectors, including: Telco, Healthcare, Technology and government. He is currently working as a Senior Test Consultant for Planit Software Testing. Master's Degree in Public Information Information Systems, and over 10 years of board governance experience for multiple organisations. Full bio is available at: http://www.linkedin.com/in/dingfelder Follow him on Twitter at http://twitter.com/dingfelder Andy Dingfelder lives in the Wellington region, New Zealand with his wife and two daughters.
This entry was posted in Eclipse, gentoo, linux. Bookmark the permalink.