How To Install JRE and JDK on Ubuntu Natty 11.04

Java
Method 1
From canonical partners repository
Go to Ubuntu Software Center then choose edit then click Software sources now you need to click on other software then select canonical partners,canonical partners (Source code) click ok. Then
Now this will ask for source list update after this you can install the following packages from your command line
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
Method 2
Open the terminal and run the following commands
sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
If you want to install JDK use the following command
sudo apt-get install sun-java6-jdk
Testing Java Runtime Environment
You’ll want to confirm that your system is configured properly for Sun’s JRE. Check that the JRE is properly installed by running the following command from a terminal.
java -version
Advertisement
Categories: Gado Gado
tukeran link boleh ni bro .. klo mau komentar aja ke blog ane , klo g email aja . OK thank’s , btw nice blog .