Reputation: 3487
I have a problem importing an existing project.
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
The error: The import javafx cannot be resolved.
I use Java 8 OpenJDK amd64 as the JRE System Library. Also i have no idea which version of java the primary version had if you would refer to this solution. I use the newest version i can.
Any ideas?
Thanks
Upvotes: 0
Views: 1354
Reputation: 16051
The OpenJDK does not contain JavaFX. You need to install it separetely, if you want to stick with it. Please check out the OpenJFX project, that provides the open source version.
Or you might consider using Oracle's JDK, that contains it out of the box.
Upvotes: 3