This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Use Process Explorer instead of the Windows Task Manager. It will still show up as "java.exe" or "javaw.exe", but if you right click on these and select Properties you can see the entire command line that was used to create the process.
I want to allow only one instance to be running of my jar...So, I am checking for the process, if that process is already running then I will pop-out the error message to user stating that , "another instance of Myjar.jar is running"