1, sudoapt-getinstallsun-java6-sdk2, sudoapt-getinstallsun-java6-plugin to the browser to install JAVA support 3, sudoapt-getinstallsun-java6-plugin after the installation of these three also need to write system variables: $ sudogedit/etc/environment write in the text editor
1. sudo apt-get install sun-java6-sdk
2. sudo apt-get install sun-java6-plugin to install JAVA support for the browser
3. sudo apt-get install sun-java6-plugin
After installing the three variables, you need to write the system variables:
$ Sudo gedit/etc/environment
Write the following two lines in the Text Editor:
CLASSPATH =.:/usr/lib/jvm/java-6-sun/lib
JAVA_HOME =/usr/lib/jvm/java-6-sun
4. Adjust the priority of system virtual machines as follows:
$ Sudo gedit/etc/jvm
Write the following sentence at the top of the Text Editor:
/Usr/lib/jvm/java-6-sun
Installed successfully! Enter helloword for testing