BlackFlag
BlackFlag

Reputation: 150

java application is opened twice when i double click on my jar-file

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

Answers (1)

Neeraj Jain
Neeraj Jain

Reputation: 7720

Might be this is the problem , Try clicking it only once .

Open Files Folder in  just one click

Upvotes: 4

Related Questions