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.
sudo apt-get update && apt-get remove openjdk*
Traverse to the location where JDK is stored.
cd ~/Downloads
Unzip the JDK with the following command.
tar -zxvf jdk-8u131-linux-x64.tar.gz
Create a permanent directory for the JDK.
sudo mkdir -p /opt/java
Next send the JDK to its permanent location by issuing the following command.
sudo mv jdk1.8.0_131 /opt/java
Install the JDK bu issuing the following command.
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jdk1.8.0_131/bin/java" 1
Set JDK Alternatives as follows.
sudo update-alternatives --set java /opt/java/jdk1.8.0_131/bin/java
Finally check the the version information.
$ java -version
You have successfully installed the Oracle JDK on Linux Mint.
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.