Open JDK to Sun JAVA JDK on Eclipse
This is how to change the ubuntu open jdk to sun jdk Step 1. Open Shell Step 2. indika@indika-lenovo-3000-g550:~$ java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1) OpenJDK Server VM (build 19.0-b09, mixed mode) Step3. ndika@indika-lenovo-3000-g550:~$ sudo update-alternatives --config java [sudo] password for indika: There are 3 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode 1 /usr/bin/gij-4.4 1044 manual mode 2 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode 3 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode Press enter to keep the current choice[*], or type selection number: 3 update-alter