Monday, 16 July 2012

To get the current directory in java

To get the location of Desktop
System.getProperty("user.home");

To get the location of the current working project directory
System.getProperty("user.dir");

No comments:

Post a Comment