ok, I am now using this to load the class:
URLClassLoader child = new URLClassLoader(new URL[]
{ jarFile.toURI().toURL() }, this.getClass().getClassLoader());
URL url =...
Type: Posts; User: sci4me
ok, I am now using this to load the class:
URLClassLoader child = new URLClassLoader(new URL[]
{ jarFile.toURI().toURL() }, this.getClass().getClassLoader());
URL url =...
It is probably because Console is an interface and i am doing this:
new Console(){}
And filling in the methods. However, that isn't the point. The point is that I am getting this error and I...
... classes a b and c were examples...
it doesnt matter what the class is, it happens no matter what the classes are
console could be a and there could be some class b and/or c that extends...
I literally told you the error...
Caused by: java.lang.LinkageError: loader (instance of com/sci/rpi/util/ZipClassLoader): attempted duplicate class definition for name: "Console"
at...
I still haven't been able to figure out how to fix this... can someone help? Someone must know how to fix this...
Anyone? I kind of NEED this... so...
Hey guys. So I am dynamically loading classes from a jar file. If I try to make two classes, B and C, that both extend A, it says that I am trying to define class A multiple times and crashes. I was...