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”
Leave a Reply
[...] 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 [...]