Reputation: 150
I've noticed a strange behaviour with my runnable jar which i created in eclipse. when i try to open my application via command line like this:
java -jar c:\project\project.jar
everything works perfect, the application is executed - same behaviour when i start the application via eclipse.
But when i start my application by double-click on the jar-file my application is opened twice AND there are two different processes in my taskmanager. Interesting also is that the second application is opened lets say a second later when the first one is shown...
i dont understand this strange behaviour - i tried to open my jar-file on another workstation and i also got two running applications.
the jar-file is generated via eclipse: file->Export->Runnable Jar file. i choosed the radiobutton "Package required libraries into generated JAR".
Has anybody any idea?
Upvotes: 1
Views: 298