I am running Linux Mint 19.1 and have installed the OpenJDK Runtime Environment. I do not have eclipse installed and this question, which does not provide sufficient detail to make it clear what OP's question actually is, doesn't seem particularly relevant despite the title.
> java --version
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)
Since installing Java, I have also installed javafx using the information I found on Ask Ubuntu. apt reports the following:
> sudo apt install openjdk-11-jdk openjfx
...
openjdk-11-jdk is already the newest version (11.0.3+7-1ubuntu2~18.04.1).
openjfx is already the newest version (11.0.2+1-1~18.04.2).
The problem I am now having is that the line import javafx; results in the following error:
> java CheckJavaFX.java
CheckJavaFX.java:1: error: package javafx.application does not exist
import javafx.application.Application;
^
1 error
error: compilation failed
How do I resolve the problem?