You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to [1] ProcessInfo#getCommand() should return:
"The command that was originally used to start this process."
This means that for a process started like: "java -jar javasysmon.jar"
The returned string should be, well, just that: "java -jar javasysmon.jar"
Currently this only works as advertised on Linux. The docs state that it shouldn't work for MacOSX and Solaris, but I can confirm it doesn't work for Windows either. On windows the returned string is retrieved using "GetProcessImageFileName", this does not return the command line string that was used to start the process, it returns rather a string like:
According to [1] ProcessInfo#getCommand() should return:
"The command that was originally used to start this process."
This means that for a process started like: "java -jar javasysmon.jar"
The returned string should be, well, just that: "java -jar javasysmon.jar"
Currently this only works as advertised on Linux. The docs state that it shouldn't work for MacOSX and Solaris, but I can confirm it doesn't work for Windows either. On windows the returned string is retrieved using "GetProcessImageFileName", this does not return the command line string that was used to start the process, it returns rather a string like:
"\Device\HarddiskVolume1\WINDOWS\system32\java.exe"
Which is not what you want.
[1] - http://jezhumble.github.com/javasysmon/com/jezhumble/javasysmon/ProcessInfo.html#getCommand()
The text was updated successfully, but these errors were encountered: