Change your default Java VM

To see which VMs are available:

java-config --list-available-vms

Example:

steph@localhost # 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]
*)      Sun JDK 1.5.0.09 [sun-jdk-1.5]
3)      Sun JDK 1.6.0.01 [sun-jdk-1.6]

To set your VM to number [n] in the list:

java-config --set-system-vm [n]

Example:

steph@localhost # java-config --set-system-vm 3
Now using sun-jdk-1.6 as your generation-2 system JVM

References

Gentoo Java Guide

Last modified: 27/06/2007 Tags: (none)

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top