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. Advertising

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:
    975
    Andrew Thompson
    Feb 10, 2004
  2. Joona I Palaste

    Log4J/JCL questions

    Joona I Palaste, Oct 8, 2004, in forum: Java
    Replies:
    0
    Views:
    515
    Joona I Palaste
    Oct 8, 2004
  3. learner9
    Replies:
    3
    Views:
    19,870
    learner9
    Apr 6, 2006
  4. Chris

    launching JCL on MVS

    Chris, Sep 13, 2004, in forum: Python
    Replies:
    5
    Views:
    5,043
    Chris
    Sep 27, 2004
  5. Karsten Wutzke
    Replies:
    0
    Views:
    393
    Karsten Wutzke
    Jun 29, 2007
Loading...

Share This Page