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

G

gorudonu

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top