-Dsun.java.command is not updated in jps/jcmd
Sundara Mohan M
m.sundar85 at gmail.com
Wed Feb 13 04:01:38 UTC 2019
Hi,
I am trying to change the main class name (listed via jps) to be
different from actual class name used.
For example,
I am starting a process as com.sundar.XmlConfig as my main class but in
jps i want to see it as com.sundar.MyApplication.
I tried passing -Dsun.java.command=com.sundar.MyApplication in command line
like,
java -Dsun.java.command=com.sundar.MyApplication com.sundar.XmlConfig but
still it is showing XmlConfig in the jps output.
Any idea how to solve this?
Thanks,
Sundar
More information about the hotspot-dev
mailing list