The import javafx cannot be resolved

According to the packages list in Ubuntu Vivid 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:


Hope this helps.

Leave a Comment