When executing a Java application the process name given to it is usually java.exe or javaw.exe. But how can I make it be called by the name of my
java.exe
javaw.exe
Not all flavors of exec support the -a flag. If yours doesn't, the argv0 program does something similar.