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.
When I execute it I get this exception:
java.net.MalformedURLException: no protocol: /home/rudik/workspace/cl/target/classes/
Anonymous User
03-Dec-2015