Issue
- JAR path is "D:\AA\BB\Test.jar"
- Change CLI current path to "D:\AA\BB"
- Execute
javaw -jar Test.jar - Close CLI
In the task manager, there is only the "javaw.exe process", and the command line does not have Test.jar path information.


How to view the path of a jar through cmd, power shell commands, or other methods
Solution
Thanks @Adrian Mole reopen and amendment this question.
This is the information I currently have, when I use microsoft official tool Process Explorer,I got this information
The key information is Current directory. I think this is OS process concept(current working directory).
I want to do it in a simple way(like CLI)get running Jar full path,but when Jar starting in relative,I need get process CWD.
Perhaps I can simply obtain the process CWD on Linux through the CLI without coding,But I currently can't find it on Windows.
By the way,This issue is not very important,I will close it.
Answered By - Shire

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.