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