Relative path of the current working Project folder
System.out.println((new File("")).getAbsolutePath());
-----------------OR -----------------
File currDir = new File(".");
String path = currDir.getAbsolutePath();
System.out.println(path);
No comments:
Post a Comment