I do notice that the mainapp selection box next to the play button has a red X, as if to indicate
that something is wrong. When I try to select “Edit Configurations…” under that pulldown
I see the following dialog form, which echoes the message (as a warning)
(!) Warning: Class ‘mainapp’ not found in module ‘jims-super-project’
The Edit Configurations dialog seems to have an option to edit the Main class, i.e., the […] button.
When I click that I get a navigator where I can select the “Main Class” by clickity-click.
If I navigate to the mainapp class in that navigator, and click OK there. I get a terse, unhelpful message: “main app is not acceptable”
Hi Jasper, thanks for the clue. Does that object need to inherit from something in particular? Or does the main method need to have a certain signature? Because even if I change the class to an object, the problem of “Error: Could not find or load main class mainapp” still persists.
Here is the first few lines of the object definition
So after changing mainapp to an object, I have to again go to the Edit Configurations dialog
and re-trace the hierarchical path down to the file, click on the object name, mainapp,
and intellij changes the Main class name to jimka.mainapp