

Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Type the following command to display version: Open your $HOME/.bash_profile or /etc/profile (system wide) configuration. You also need to setup JAVA_HOME and PATH variable. Make sure /usr/lib/jvm/java-6-sun is added to the top of JVM listĪt the end your file should read as follows: The default system JVM is the first one available from top to bottom.

Each JVM should list their JAVA_HOME compatible directory in this file. This file defines the default system JVM search order. You also need to edit a file called /etc/jvm. $ sudo update-java-alternatives -s java-6-sun To select, Sun’s JVM as provided in Ubuntu 7.10, enter: Ubuntu Linux comes with update-java-alternatives utility to updates all alternatives belonging to one runtime or development kit for the Java language. $ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk Setup the default Java version Open a shell prompt (terminal) and type the following to install JDK and JRE: Click on System > Administration > Software Source > Select Multisource > Close To install proprietary Java, you must have the Multiverse repository enabled.

=> sun-java6-jre : Sun Java Runtime Environment (JRE) 6 Install Sun Java 6 => sun-java6-jdk : Sun Java Development Kit (JDK) 6 sun-java6-demo : Sun Java Development Kit (JDK) 6 demos
