Tuesday, June 25, 2013

Install Eclipse,Java and setting variables in Ubuntu

To install Eclipse in Ubuntu first you have to download it from the Eclipse web site.
Here I am installing  Eclipse Juno (4.2)  Eclipse IDE for Java EE Developers Eclipse Juno (4.2)

You can download it from here.


After downloading the file you can you can open it with archive manger and and extract it where you want.

                             

After that you can start using eclipse.

How To Install JDK On Ubuntu

Open terminal by pressing alt+ctrl+t .
Type
apt-cache search openjdk
To search all the available Openjdk version.




Here I am going to install open JDK 7

Type 
sudo apt-get install openjdk-7-jdk
in terminal to install open JDK 7

To verify the installation type
java -version
in terminal



How to set JAVA_HOME for OpenJDK


Type
nano ~/.bashrc
in the terminal to open the .bashrc and edit it.At the end of the file add the following line
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/


                

 

and press ctrl+o and then press enter to save the file.


To verify the java home type
echo $JAVA_HOME

in the terminal







No comments:

Post a Comment