javafx - 启动 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)
解决方案
推荐阅读
- mongodb - MongoDB 在对象数组中找到 $near
- c# - 如何在 API 中为不同的值传递相同的参数
- android - 在 firebase 中使用两个单独的用户登录
- java - 将参数 $filter 和 $expand 与 VDM 生成的类一起使用
- azure - Unable to apply SSL Binding in Azure to Web App Service
- c# - 如何通过 ManagementScope 使用用户名/密码/域进行身份验证
- actions-on-google - 将第三方服务连接到谷歌助手
- javascript - 您可以使用“this”使用速记属性分配吗?
- windows-installer - MSI 没有等待服务完全停止才返回
- javascript - JavaScript:如何在同一个对象中分配与另一个变量相同的变量?