I'm using openjdk-8
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)
and i try to install javafx by:
sudo apt-get install openjfx
but it is not installing any of jfxrt.jar, jfxswt.jar etc. in any of openjdk folders and it should according to this post. What am I doing wrong?
I think you've probably figured it out by now, but for anyone else that comes across this, this StackOverflow answer worked for me on Ubuntu 18.04 with openJDK. In case the answer is deleted for some reason, here are the commands he gave - he didn't give any explanation, unfortunately.
That may not be an ideal solution, but every time when working with JavaFX I use this list of commands:
to add path variable
to compile program
to run program. Thats simply from openjfx documentation.