Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java (default-cli)

后端 未结 5 1282
感动是毒
感动是毒 2020-12-10 09:59

Im working on Smooks - Camel Integration.Im stuck with an error.The Build Fails when I try to Run it using mvn exec:java


5条回答
  •  攒了一身酷
    2020-12-10 10:37

    To solve this problem in IntelliJ...
    1) Put your .fxml files into resources directory
    2) In the Start method define the path to .fxml file in the following way:
    Parent root = FXMLLoader.load(getClass().getResource("/sample.fxml"));
    The / seemed to solve this problem for me :)

提交回复
热议问题