Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to install open JDK on Ubuntu ?

    • 0
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 150
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: