Java how to load modules
Posted
by gerardorn
on Stack Overflow
See other posts from Stack Overflow
or by gerardorn
Published on 2010-05-16T23:07:15Z
Indexed on
2010/05/16
23:10 UTC
Read the original article
Hit count: 168
heres my problem:
im building a server that loads modules. each module is a .jar file. inside the jar theres all the classes that the module need. the server needs to read the jar, find the main class (it doesnt have the main method on it is just the class that makes the module work but not as a different program), build an object of that class and store it in a vector of modules so that it can acces to a specific module depending on the job to be done.
how can i do that?
as far as the server, it is listening and reciving request, but thes no modules to delegate the job to, since my vector of modules is empty
© Stack Overflow or respective owner