The development tools Get the directory where the JAR package is run January 5, 2024 by Kiaan Dhawan No Comments It sounds weird, and it is: String jarDir = FileSystem.class.getProtectionDomain().getCodeSource().getLocation().getPath();