简体   繁体   中英

Error resolving all javafx imports

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM