i'm trying to find the location of the running jar file using the method:
File jarFile = new File(JarPath.class.getProtectionDomain().getCodeSource().getLocation().toURI());
when i run it on the IDE (eclipse) it returns the correct path. but when i run the jar as an executable the code source returned is
rsrc:./
ideas on how the get the correct path?