How to install "Open JDK" (Java developement kit) in Ubuntu (Linux)?

in #linux7 years ago
  1. Open Terminal from Application Dash or press Ctrl+Alt+T
  2. Run the following command in Terminal:
    sudo apt-get install openjdk-8-jdk
    sudo apt-get install openjdk-8-source #this is optional, the jdk source code
  3. Type commandline as below...
    apt-cache search jdk
    (Note: openjdk-8-jdk is symbolically used here. You can choose the JDK version as per your requirement.)
  4. For "JAVA_HOME" (Environment Variable) type command as shown below, in "Terminal" using your installation path...
    export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
    (Note: "/usr/lib/jvm/java-8-openjdk" is symbolically used here just for demostration. You should use your path as per your installation.)
  5. For "PATH" (Environment Variable) type command as shown below, in "Terminal" using your installation path...
    export PATH=$PATH:/usr/lib/jvm/java-8-openjdk/bin
    (Note: "/usr/lib/jvm/java-8-openjdk" is symbolically used here just for demostration. You should use your path as per your installation.)
  6. Check for "open jdk" installation, just type command in "Terminal" as shown below
    javac -version
Sort:  

Congratulations @pcraziers, you have decided to take the next big step with your first post! The Steem Network Team wishes you a great time among this awesome community.


Thumbs up for Steem Network´s strategy

The proven road to boost your personal success in this amazing Steem Network

Do you already know that awesome content will get great profits by following these simple steps, that have been worked out by experts?

Congratulations @pcraziers! You received a personal award!

1 Year on Steemit

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @pcraziers! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.030
BTC 68288.30
ETH 2649.13
USDT 1.00
SBD 2.69