How to get the real path of Java application at runtime?

Try;

String path = new File(".").getCanonicalPath();

Leave a Comment