Thursday, June 30, 2011

How to install Java JDK in Ubuntu - Linux

You can install java JDK with JRE using apt-get command

sudo apt-get install openjdk-6-jdk openjdk-6-jre

Use the following command to set JAVA_HOME

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

Also use the following line in your .bashrc file

export PATH=$PATH:$JAVA_HOME/bin

No comments:

Post a Comment