List of utility methods to do Classpath to Path Convert
String | getFilePathFromClasspath(String filename) Gets the absolute path of a file with given filename, searching classpath. java.net.URL url = ClassLoader.getSystemClassLoader().getResource( filename); if (null != url && "file".equals(url.getProtocol())) { return url.getPath(); return null; |