ArticleDirectory
- Installing JDK on Ubuntu 12.04 (precise pangolin)
If you are a Java developer or a beginner, who just installed Ubuntu 12.04 lts (precise pangolin) Then JDK (Java Development Kit) is the first thing you want to install (although you might consider
Installing these essential things too ).
In the previous version of ubuntu, sun-JDK was also available-In 12.04 you might install it from an external PPA but it's not recommended better try open-JDK or Oracle-JDK (Oh !, I don't recommend this either). So this post might help you in setting up
Java Development Environment on Ubuntu 12.04 lts.
Although, this post explains only about JDK but you may like to setup eclipse (most popular IDE for Java programmers) IDE and Java server environments Like Apache Tomcat, JBoss or whatever depending on your project.
Installing JDK on Ubuntu 12.04 (precise pangolin)
In official package, V 6 as well as 7 is available. so if you're already working on a project then you wowould obviously go for that, otherwise latest version is recommended. JDK nodes default JRE (Java Runtime Environment) according to the version, and
Other dependencies. If you don't like command line interface then better go for Synaptic Package Manager (abve snapshot ).
Install openjdk 7
Sudo apt-Get install openjdk-7-jdk
Install openjdk 6
Sudo apt-Get install openjdk-6-jdk
Update1: Synaptic Package Manager snapshots added!
Reprinted from: http://blog.sudobits.com/2012/04/20/how-to-install-jdk-on-ubuntu-12-04/