Sunday, 24 April 2016

How to get location where your Java application is running ?


The current working directory is the root folder of where your current Java project is running, It can be retrieved by using the system property function.

String workingDir = System.getProperty("user.dir");

No comments:

Post a Comment

Note: only a member of this blog may post a comment.