Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Runnable JAR problems(program exit by it self)
Runnable JAR problems [message #1800733] Mon, 07 January 2019 14:00
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 145
Registered: October 2018
Senior Member
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:

index.php/fa/34620/0/



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.
Previous Topic:Generic JDBC Connections?
Next Topic:error in eclipse
Goto Forum:
  


Current Time: Mon Sep 16 00:12:14 GMT 2024

Powered by FUDForum. Page generated in 0.25610 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top