How to get the real path of Java application at runtime? May 15, 2023 by Tarik Try; String path = new File(".").getCanonicalPath();