Usually you install the openjdk like this:
sudo apt-get install openjdk-8-jdk
Maybe this is the problem. You can look this up at http://openjdk.java.net/install/index.html. If you do this you might have fixed this problem. But cant imagine why your command give this result.
Answer from Booming on askubuntu.comUsually you install the openjdk like this:
sudo apt-get install openjdk-8-jdk
Maybe this is the problem. You can look this up at http://openjdk.java.net/install/index.html. If you do this you might have fixed this problem. But cant imagine why your command give this result.
I installed oracle-jdk8. If you need,
sudo add-apt-repository ppa:webupd8team/java && sudo apt update
sudo apt install oracle-java8-installer
How do I install Java 8 JRE
java - Installing jdk 8 on a fresh Linux Mint 18.2 - Stack Overflow
How to properly install Oracle Java 8 on Ubuntu? - Stack Overflow
how to install java 8 to debian?
Videos
I'm on ChromeOS, using the dev environment. Linux penguin can't install java 8 jre. I tried and this happened:
sudo apt-get install openjdk-8-jre
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package openjdk-8-jre
pls help D:
Linux Mint 18.2 and above I believe the default JDK is version 8.
The easiest way to install it is go to Menu->Administration->Software Manager and search for JDK. Install the Default-jdk, or you can look for the Openjdk-8-jdk. Also install the -doc too if you need that.
EDIT: from either the Software Manager or the Synaptic Package Manager you can remove any older versions.
You don't have to deinstall the existing jdk, just download, unzip and install any version you'd like. Like so:
cd /my/download/location/for/java/zip/file
unzip java-zip-file.zip
mv java-unzipped-folder /some/path/to/your/java/versions/.
..and update your .bashrc-file or .profile-file to include the newest java-version
sudo apt install openjdk-8-jdk openjfx should do the trick.
It will get you JavaFX for OpenJDK.
Read more at https://askubuntu.com/questions/1091157/javafx-missing-ubuntu-18-04
Others have mentioned to install openjdk-8.
After that--->
Get jfxrt.jar file from https://github.com/qweasdzxcpoi/JavaFX
Do sudo nautilus.
And put it in your /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext
This personally worked for me when all the other commands were not working for some reason idk.
After that rebuild your project.