Search:

Type: Posts; User: sci4me

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    1,407

    Re: Class loader wont let me extend classes...?

    ok, I am now using this to load the class:


    URLClassLoader child = new URLClassLoader(new URL[]
    { jarFile.toURI().toURL() }, this.getClass().getClassLoader());
    URL url =...
  2. Replies
    9
    Views
    1,407

    Re: Class loader wont let me extend classes...?

    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...
  3. Replies
    9
    Views
    1,407

    Re: Class loader wont let me extend classes...?

    ... 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...
  4. Replies
    9
    Views
    1,407

    Re: Class loader wont let me extend classes...?

    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...
  5. Replies
    9
    Views
    1,407

    Re: Class loader wont let me extend classes...?

    I still haven't been able to figure out how to fix this... can someone help? Someone must know how to fix this...
  6. Replies
    9
    Views
    1,407

    Re: Class loader wont let me extend classes...?

    Anyone? I kind of NEED this... so...
  7. Replies
    9
    Views
    1,407

    Class loader wont let me extend classes...?

    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...
Results 1 to 7 of 7