
It’s been a while since my last update on the tech blog, but after I needed to re install Java on my development virtual box running Ubuntu 10, I felt the need to document the process.
Java is one of the most important developments in language constructs that we have. The Programming language originally developed by James Gosling at Sun Microsystems (now a subsidiary of Oracle Corporation) and released in 1995 as a core component of Sun Microsystems’ Java Platform.
Much of Java has a C and C++ syntax but has a nice simple object model. Java applications are typically compiled into byte code (class file) that can be run on the Java Virtual Machine (JVM). This is a great benefit to the IT world as it is possible to write once and deploy anywhere structure.
Enough about the background of Java – let’s get to the Install directions.
Open the terminal and run the following commands
$sudo add-apt-repository ppa:sun-java-community-team/sun-java6
$sudo apt-get update
$sudo apt-get install sun-java6
Search the real name of package for Ubuntu 10.10
$sudo apt-cache search java
Afer searching the name of the installer is sun-java6-jre
$sudo apt-get install sun-java6-jre sun-java6-bin
You should also mention that once installed, to be used by default one needs to set it to be so..
This is done by running:
$sudo update-java-alternatives -l
(find out the name eg java-6-sun) and then run:
$sudo update-java-alternatives -s java-6-sun
(check the current default java version)
$java -version
That’s pretty much it. Not a difficult process.
One Response to “Install Java on Ubuntu 10 the right way”

Thanks for sharing best 10 way. I am happy to read this article. thanks for giving us nice info.