I have this piece of code:
URLClassLoader tmp = new URLClassLoader(new URL[] { getClassPath() });
private static URL getClassPath() {
return new URL("/home/rudik/workspace/cl/target/classes/");
}I got /home/rudik/workspace/cl/target/classes/ from Arrays.toString(((URLClassLoader) MyClass.class.getClassLoader()).getURLs()) execution.
java.net.MalformedURLException: no protocol: /home/rudik/workspace/cl/target/classes/
private static URL getClassPath() {return new URL("file:///home/rudik/workspace/cl/target/classes/");
}