Yes, it's well documented how to get the name of your application's exe file and see if it is running. When the application in question is a java application, the running exe will always be java.exe, and so this method falls flat on its face since there could be any number of java applications currently running, all launched with java.exe. Each one will differ in the commandline parameters passed, including the main class name.
I need to know the commandline parameters to java.exe so I can know that only the one that says java.exe MyProgram is to be terminated.
How do I do that in NSIS?