modules, class path, and Run/Debug

I've set up some modules to utilize the capability reference in request #21410 ( In particular, I have three modules:
one which has our source code and classes (called trunk), another that doesn't have any source and a single JDBC jar file (called JDBC Runtime), and a third that is empty which as dependencies on "trunk" and "JDBC Runtime" (called Runtime).

The intent of all this is to avoid introducing any compile-time dependencies on the JDBC jar while allowing that jar to be referenced at runtime. I do the latter by specifying, for "Use classpath and JDK of module" in the Run/Debug dialog, the "Runtime" module. In the Run/Debug dialog, however, it displays the message 'Warning: Class "org.apache.jserv.JServ" not found in module "Runtime"' and displays a red X on configuration I'm about to run. Nevertheless, when I execute the configuration it finds that class (presumably because it is in the class path of the dependent "trunk" module).

So, am I going about this the right way? (This is the first time I've tried to do anything with multiple modules.)

BTW, this seems like this is the problem described in request #25872 (, but that request is supposed to have been resolved for Aurora.

Please sign in to leave a comment.