I'm developing a desktop application using javafx v8.0.40. I have created an exe file with inno 5. When I run exe file in my computer, it is installed and run without any problem. On the other hand, when I try to install and run it on some other computer, at the end of installation, window dialog pops up: "Error invoking method", I click Ok. Another window pop up saying "Failed to launch jvm". I searched the whole internet, but I couldn't find much about this topic. I hope I will get solution to this problem. Thank you in advance.
|
|
I ran into the same problem; the following worked for me and helped me make sense of those blasted "Error invoking method." and "Failed to launch JVM" dialogs:
Tadah! Behold your hidden exceptions (the existence of which "Error invoking method." so vaguely tries to communicate to you). * If your problem is similar to mine it stems from a file structure difference between the project *If you didn't get anything when you ran it via the command line, look for any errors that could be happening during that |
||||
|
|
|
This is probably because it lacks the dependencies in the output jar. So you hate to add the libraries in the artifact and then .exe generation should be ok. Here is an example with Intellij, where the libraries have be manually moved from "Available Elements" to the artifact |
|||
|
|
|
even though this question is a little old - today I faced the exact same problem and couldn't find any solution searching for those error messages other then here. The problem is pretty much identically: Built JavaFX Application (running fine on dev pc) using java 8 and packaged to native installer (exe) using Inno 5. Application ran fine on some of our machines - on others it failed with exact those to error messages:
On application startup, the fxml loader loads the first view controller and calls its "initialize" method. If - within initialize - an unhandeled exception is being thrown, the application crashes and those two windows error messages are shown. Hope that this will help some one who like me is struggling with that, too. |
|||
|
|