Monday, April 21, 2014

Developing Java in Ubuntu 12.04

OS: ubuntu 12.04 LTS
Java Version: "1.7.0_55"
 
Step-1:
Installing Java 7 in Ubuntu 12.04 with default setup.


Step-1.1:
    sudo add-apt-repository ppa:webupd8team/java
Step-1.2:
    sudo apt-get update 
Step-1.3:
    sudo apt-get install oracle-java7-installer

It'll keep your java 7 installation up to date.

To automatically set up the Java 7 environment variables JAVA_HOME and PATH:

Step-1.4:
    sudo apt-get install oracle-java7-set-default


Step-2:
Downloading IDE for Java.

The best way to work with a better editor is to choose Eclipse which is easy to use. For this you can use Ubuntu Software Center

  1. Open "Ubuntu Software Center"
  2. Type "Eclipse" in the search box
  3. Click on "install

-----
Now open Eclipse editor and enjoy Java.