First, download and save the linux version of SUN JAVA. Select the Linux self-extracting file one
Second, the file should be stored at "/home/user/Downloads"
Third, press "alt+F2" keys and then press "terminal" to open a terminal console windows.
sudo /home/user/Downloads/jre-6u7-linux-i586-rpm.bin"
It is installed, but the system is not aware of it yet. The following commands take care of that, just paste them into the terminal with Ctrl+Shift+V. You will have to paste a whole block at once, because the \ at the end of a line means it is continued at the next line.
sudo update-alternatives --install \
/usr/bin/java java /usr/java/latest/bin/java 20000
sudo update-alternatives --install \
/usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so \
/usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so 20000
sudo update-alternatives --auto java
sudo update-alternatives --auto libjavaplugin.so
Sun Java is now the default Java. You can also switch between all installed Java versions at any time using the commands below.
sudo update-alternatives --config java
sudo update-alternatives --config libjavaplugin.so
沒有留言:
張貼留言