fixed java11 execution

* use mvn compile exec:java for now to run HomeFlix
* compilation is not possible yet
* see #4
This commit is contained in:
2018-09-23 14:33:16 +02:00
parent 96bfc461cb
commit abbb272bff
4 changed files with 137 additions and 133 deletions

View File

@ -92,7 +92,7 @@ public class Main extends Application {
private void mainWindow(){
try {
FXMLLoader loader = new FXMLLoader();
loader.setLocation(ClassLoader.getSystemResource("fxml/MainWindow.fxml"));
loader.setLocation(getClass().getResource("/fxml/MainWindow.fxml"));
loader.setController(mainWindowController);
pane = (AnchorPane) loader.load();
primaryStage.setMinHeight(600.00);