java - Get path of execution - from where I start jar file -


can in java app find current path start jar file ?
path of execution ( example: c:\test\test_one> java -jar test.jar c:\test\test_one ) ?

you can. within code can call system.getproperty("user.dir") return working directory of application.


Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

Delphi Wmi Query on a Remote Machine -