Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Installing JAVA (open-jdk) in LINUX using TERMINAL simple steps.

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 746
    Comment on it

    The simplest and the easyest way to install anything on Linux is throught Terminal

    1. Open terminal using ALT+CTRL+T


    2. Type command shown below:
    sudo apt-get install openjdk-7-jdk

    Note: in : openjdk-7-jdk, 7 is for demonstration, you can choose any JDK version you want to install.


    3. Now type :
    apt-cache search jdk


    4. For (JAVA_HOME) ENVIRONMENT VARIABLES, type command as per you installation path.
    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk

    Note: This path is for demo you can use it as default, advance users can use there own path.


    5. For (PATH) ENVIRONMENT VARIABLES, type command as per you installation path.
    export PATH=$PATH:/usr/lib/jvm/java-7-openjdk/bin

    Note: This path is for demo you can use it as default, advance users can use there own path.


    6. To check open jdk is installed on your system, use command
    javac -version



    After last step Terminal will show you the version of JDK you have installed, if not you have done something wrong.

 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: