i use ubuntu 16.04 and because i already had openjdk installed, this command have solved the problem. don't forget that javafx is part of openjdk.

sudo apt-get install openjfx


according to the packages list in ubuntu wily xenial bionic there is a package named openjfx. this should be a candidate for what you're looking for:

javafx/openjfx 8 - rich client application platform for java

you can install it via:

sudo apt-get install openjfx

it provides the following jar files to the openjdk installation on ubuntu systems:


if you want to have sources available, for example for debugging, you can additionally install:

sudo apt-get install openjfx-source

Related Query

More Query from same tag