Does anyone know how to programmaticly find out where the java classloader actually loads the class from?
I often work on large projects where the classpath gets v
Edit just 1st line: Main.class
Main
Class> c = Main.class; String path = c.getResource(c.getSimpleName() + ".class").getPath().replace(c.getSimpleName() + ".class", ""); System.out.println(path);
Output:
/C:/Users/Test/bin/
Maybe bad style but works fine!