Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jun 112011

Changing the default Java environment in Ubuntu


If you have more than one JVM (Java Virtual Machine) installed in your Ubuntu server, e.g. OpenJDK and the Oracle JDK, you can easily select them using the following command:

# sudo update-alternatives --config java

Following the instruction and you can easily set them as you want.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>