【发布时间】:2015-08-31 11:45:16
【问题描述】:
下面是异常输出。我认为程序无法检索 FXML 文件“home.FXML”;它在这一行失败了:
Parent root = FXMLLoader.load(getClass().getResource("/fxml/home.fxml"));
这是加载 FXML 的类的其余部分。
public class Boorus extends Application{
public static void main(String[] args){
launch(args);
}
public void start(Stage primaryStage) throws Exception{
SQLboss.makeTables();
Parent root = FXMLLoader.load(getClass().getResource("/fxml/home.fxml"));
Scene scene = new Scene(root);
primaryStage.setScene(scene);
primaryStage.setTitle("Boorus");
primaryStage.show();
}
}
我的项目结构如图所示:
在此处粘贴异常:http://pastebin.com/rWkRuury
【问题讨论】:
标签: exception jar javafx executable