Hello, I have been having troubles running the generated binary for Mac, this is after I turn on the execute flag with "chmod +x" an then run.
I have generated a Windows .exe with the same jar file that starts and performs as it should, but on Mac I get a java.lang.ExceptionInitializerError every time the program gets to the new FXMLLoader(url) part of my code. I have tried to look to at the URL by printing it out before loading and I noticed it had the format "j2e:com/xxxx/xxxx/xxxx.fxml" and I'm quite sure I have the "com/xxxx/xxxx/xxxx.fxml" resource file in the jar I provided.
The code below is how i am getting the fxml file in my code.
Hello, I have been having troubles running the generated binary for Mac, this is after I turn on the execute flag with "chmod +x" an then run.
I have generated a Windows .exe with the same jar file that starts and performs as it should, but on Mac I get a java.lang.ExceptionInitializerError every time the program gets to the new FXMLLoader(url) part of my code. I have tried to look to at the URL by printing it out before loading and I noticed it had the format "j2e:com/xxxx/xxxx/xxxx.fxml" and I'm quite sure I have the "com/xxxx/xxxx/xxxx.fxml" resource file in the jar I provided.
The code below is how i am getting the fxml file in my code.
URL url = getClass().getClassLoader().getResource("com/xxxx/xxxx/xxxx.fxml");