Search code examples
javaintellij-ideaprogram-entry-pointintellij-14

Cannot Run Class Files


Notice that the run option for the main class is greyed out. I tried restarting intelliJ, rebuilding, cleaning, everything.

enter image description here (click to zoom in)


Solution

  • Your main method requires a String array or varargs argument to be picked up.