mercredi 18 mars 2015

Load a file that stored inside a jar file


Vote count:

0




I have a FXML file in my project at myproject/fxml/myScreen.fxml and I try to load it with FXMLLoader:



content.getChildren().setAll(FXMLLoader.load(new URL("myproject/fxml/myScreen.fxml")));


But then I get this exception,



`java.net.MalformedURLException: no protocol: myproject/fxml/myScreen.fxml`


Can someone show me where were I wrong ?

Thank you.



asked 1 min ago

Xitrum

1,221






Load a file that stored inside a jar file

Aucun commentaire:

Enregistrer un commentaire