Jar Class Loader (JCL) and invoking method with my class from jarfile

Discussion in 'Java' started by gorudonu, Aug 5, 2010.

  1. gorudonu

    gorudonu Guest

    Hello, I'm new here so I'd like to just say hello everyone.

    I'm using JCL ( http://jcloader.sourceforge.net/ ) in my application
    for loading jar files. I've got 2 projects App (project with main) and
    Lib (java class librabry project). In both projects in the same
    package (App.views) I've class named 'AppWindow'. I can load class
    from Lib project and cast it to my interface (IpackManager) and calls
    method from Lib. The problem is that I can call method only without
    parameters or parameters with standard java classes (Jframe, int,
    Jpanel etc.) I can't call method with my own class – AppWindow, when I
    do this I got classnotfoundexception. When I send AppWindow object
    previously casted to Object and in Lib project cast it to AppWindow
    when again I've got the same exception. App project doesn't "know"
    about Lib project - it loads files from plugins/ directory and knows
    where is the class which App loads (ex. lib.packagemanager.Starter).
     
    gorudonu, Aug 5, 2010
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. qazmlp
    Replies:
    2
    Views:
    1,232
    Andrew Thompson
    Feb 10, 2004
  2. cyril
    Replies:
    2
    Views:
    4,454
    cyril
    Aug 25, 2004
  3. Arnold Peters
    Replies:
    0
    Views:
    889
    Arnold Peters
    Jan 5, 2005
  4. muttley
    Replies:
    0
    Views:
    3,198
    muttley
    Oct 20, 2005
  5. cyberco
    Replies:
    4
    Views:
    4,234
    Roedy Green
    Feb 14, 2006
  6. learner9
    Replies:
    3
    Views:
    20,462
    learner9
    Apr 6, 2006
  7. Arnold Peters
    Replies:
    0
    Views:
    917
    Arnold Peters
    Jan 5, 2005
  8. Karsten Wutzke
    Replies:
    0
    Views:
    522
    Karsten Wutzke
    Jun 29, 2007
Loading...