Runnable JAR problems [message #1800733] |
Mon, 07 January 2019 09:00 |
Eclipse User |
|
|
|
Hello friends,
I am using: Eclipse 2018-12, openjdk-11.0.1_windows-x64_bin.zip ,Maven(to manage jar download)
I have a JavaFX application that works perfectly under Eclipse.
Then I generated a Runnable JAR from the same "launch configuration" .
When I click on the generated jar the program screen appears but after a new seconds the program exit by it self.
Things that I did.
- I override the stop() method in the Application class (I add a log entry to a file). stop() was not activated.
- I exported a regular jar file . In order to make it run I created a batch file:

The batch file is based on the "launch configuration", The only difference is the use of the generated jar MyWeather.jar.
This is a working solution , But I am not happy since I prefer the Runnable JAR approach.
Has any one had similar experience ?
Regards.
|
|
|
Powered by
FUDForum. Page generated in 0.02600 seconds