You have to follow below Steps to install JDK (java developement kit) on Ubuntu
Step 1: Installation of JDK
sudo apt-get install openjdk-7-jdk
Step 2: After the installation, Use command.
apt-cache search jdk
Step 3: Setting the Environment Variable, open .bashrc file using command.
vi ~/.bashrc
Step 4: Set variable using following Command.
export JAVA_HOME=/usr/java/jdk1.7.0/bin/java
export PATH=$PATH:/usr/java/jdk1.7.0/bin
Step 5: Save and Close .bashrc file.
Step 6: Check the version and path of Java on your system with the help of following command.
java -v // for version
which java // for path
0 Comment(s)