Java Plug-ins?

I'm new to java and need someone to point me in the right direction. I抦 trying to put together an application that can load various interfaces at run-time. For example, I want to have tabs for various weapons each with a different interface. For each weapon the specific weapon manufacture will develop the interface that will be loaded and displayed in my application. The idea is to simply drop the interface into a specified folder for a new weapon and have my application automatically create a new tab for it and display the interface.

I know this problem has a lot to do with how the architecture of the application is defined. In C++ a user might develop a DLL to do this, in java how would I go about doing the same?

[738 byte] By [treehousea] at [2007-11-26 14:28:27]
# 1
Java supports dynamic class loading; you can load classes, using one of the classloaders, from your running code, then execute them. You also may fnd reflection useful, see http://java.sun.com/docs/books/tutorial/reflect/index.html
ChuckBinga at 2007-7-8 2:22:32 > top of Java-index,Java Essentials,New To Java...
# 2

The Java equivalent of a DLL is a jar file. So if you would have written a DLL in some Windows-specific language, in Java you would put your classes into a jar file. Often you will just add that jar file to your classpath, but in more dynamic contexts you would have to use dynamic class loading as ChuckBing described.

DrClapa at 2007-7-8 2:22:32 > top of Java-index,Java Essentials,New To Java...