BCS Install Oracle JDK On Linux Mint


OpenJDK does not support JavaFX while Oracle JDK does contain support for FX.  Installation of Oracle JDK on Mint is required.
To proceed with installation of Oracle JDK issue the following command.
[codesyntax lang=”bash”]

sudo apt-get update && apt-get remove openjdk*

[/codesyntax]
Traverse to the location where JDK is stored.
[codesyntax lang=”bash”]

cd ~/Downloads

[/codesyntax]
Unzip the JDK with the following command.
[codesyntax lang=”bash”]

 tar -zxvf jdk-8u131-linux-x64.tar.gz

[/codesyntax]
Create a permanent directory for the JDK.
[codesyntax lang=”bash”]

sudo mkdir -p /opt/java

[/codesyntax]
Next send the JDK to its permanent location by issuing the following command.
[codesyntax lang=”bash”]

sudo mv jdk1.8.0_131 /opt/java

[/codesyntax]
Install the JDK bu issuing the following command.
[codesyntax lang=”bash”]

sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jdk1.8.0_131/bin/java" 1

[/codesyntax]
Set JDK Alternatives as follows.
[codesyntax lang=”bash”]

sudo update-alternatives --set java /opt/java/jdk1.8.0_131/bin/java

[/codesyntax]
Finally check the the version information.
[codesyntax lang=”bash”]

$ java -version

[/codesyntax]
You have successfully installed the Oracle JDK on Linux Mint.
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

1 comment
  1. BCS New Mint Version
    April 15, 2018 at 3:32 pm

    […] the Oracle JDK on your system. The following link my be helpful in that […]

    Reply
Leave a Reply

Your email address will not be published. Required fields are marked *