Installing JDK in ubuntu/linux

To install jdk6.0 type the following command in terminal window

$ sudo apt-get install sun-java6-jdk

Provide password for root. It will show you agreement. Select and wait for installation to be completed.
We should set JAVA_HOME environment variable after successful installation of jdk.

$ vi ~/.bashrc

Insert following line in above file

export JAVA_HOME=/usr/lib/jvm/java-6-sun

<< Back to Setting up j2ee developer environment ...

Comments

One Response to “Installing JDK in ubuntu/linux”

  1. Setting up j2ee developer environment in ubuntu/linux : TechPitcher on February 4th, 2009 11:55 pm

    [...] java developer machine has following most frequent tools in his machine. 1.  Sun JDK 6.0 2.  Eclispe 3.4 3.  Tomcat 6.X 4.  MySql 5 5.  Apache [...]

Leave a Reply




Related Post

Setting up j2ee developer environment in ubuntu/linux
Installing tomcat in ubuntu/linux
Installing eclipse in ubuntu/linux
Installing mysql in linux
‘ant’ is not recognized as an internal or external command, operable program or batch file.
Technology