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

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -