public static Path getJarLocation(Class<?> klazz) {
		try {
			File jarFile = new File(klazz.getProtectionDomain().getCodeSource().getLocation().toURI());
			return jarFile.toPath();
		} catch (URISyntaxException e) {
			// ignore
		}
		return Paths.get("");
	}
Determines the path to the JAR that contains the given class

@return An actual Path if it was found, or an empty path if it was not
src/main/java/dev/jbang/util/Util.java