Calling jar classes from java executable
I have a java application in the form of exe file (Windows).
From this application i need to load an external jar and execute it.
Using methods Class.forName(), getMethod() amd invoke() I made some steps but I have some problems.
I'm able to instanciate the main class in the jar but when the code instances another class (in the jar) I receive a java.lang.NoSuchMethodError exception.
In general :
:confused: how can i load all the classes contained into the jar archive?
:confused: which classes defined in the second app i can invoke from the first one?
:confused: which classes defined in the first app i can invoke from the second one?
:confused: if I should have the same class in both app, what happens?
Thanks a lot !! :)