Howdy all. I'm writing a little Java application that consists of a base app and as many addon modules as I feel like coding. To simplify distribution to users I would like to put the main app and each module into separate .jar files. Then I can tell users to put all modules in the "modules" subfolder.
However, I'm having trouble getting code in the main app to recognize code in the modules. I've tried various combinations of -classpath options and Class-Path entries in the manifest to no avail. The most common error is of course NoClassDefFound. I am able to get it working if I specify each .jar file explicitly, but since I won't know ahead of time what modules I might code, I can't really do that.
Suggestions? Thanks a lot.
However, I'm having trouble getting code in the main app to recognize code in the modules. I've tried various combinations of -classpath options and Class-Path entries in the manifest to no avail. The most common error is of course NoClassDefFound. I am able to get it working if I specify each .jar file explicitly, but since I won't know ahead of time what modules I might code, I can't really do that.
Suggestions? Thanks a lot.