Search

How to set Sun java as default in Debian/Ubuntu PDF Print E-mail
User Rating: / 5
PoorBest 
How to ? - Linux
Written by admin   
Saturday, 30 October 2010 07:19

 


 

Most of the time even if we install Sun Java, gcj is used as the default. Sun java could be set as the deafult in Linux by the following simple command.

# update-java-alternatives -l
java-6-sun 63 /usr/lib/jvm/java-6-sun
java-gcj 1042 /usr/lib/jvm/java-gcj

The above command lists all the available Java.


# update-java-alternatives -s java-6-sun
# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)

 



Add this page to your favorite Social Bookmarking websites
 
Last Updated on Saturday, 30 October 2010 07:25
 

Add comment


Security code
Refresh

We have 113 guests online