I'm using IntelliJ 11.1. My project is in Java. It consists of a "main" module that is only a library. There are several other modules in the project that are applications. I'm trying to set up an application configuration to run one of those applications. In the "Edit Configurations" dialog I set the "classpath of module" to the module containing the application I want to run. When I try to browse for a main method, however, it is not found. If I try manually entrying the name of the main class, it is just shown in red and the "Ok" button is grayed out.
I notice that my "main" module is show in the Project pane in square brackets [ModuleName]. What do the square brackets mean in that context? Could this have anything to do with my difficulties?
I have another project with multiple modules, both of which are applications. I had no problem creating run configurations for both of those applications in that project. I notice that neither module is displayed in the Project pane with square brackets.
Thanks for any advice you can give!