首页 > 解决方案 > 启动 JavaFx Gui 程序时遇到问题

问题描述

我在启动一个简单的 GUI i javafx 时遇到了麻烦,它给了我各种各样的错误。谁能帮我知道出了什么问题

This is the error that im getting

Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:403)
    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoClassDefFoundError: javafx/css/StyleableObjectProperty
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)
    at java.lang.Class.getConstructor0(Class.java:2723)
    at java.lang.Class.getConstructor(Class.java:1676)
    at sun.reflect.misc.ConstructorUtil.getConstructor(ConstructorUtil.java:38)
    at javafx.fxml.JavaFXBuilderFactory.getBuilder(JavaFXBuilderFactory.java:121)
    at javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:805)
    at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:565)
    at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2314)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2131)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2028)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2744)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2723)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2709)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2696)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2685)
    at oasis.estock.OasisEstock.start(OasisEstock.java:27)

标签: javafx

解决方案


推荐阅读