6

I am trying to run a program in the run configuration I am creating, the button "OK" is not being selected when I choose the main class...

Here's a image of the problem :

enter image description here

Anyone can help ? Thank you in advance !

akari
  • 617
  • 1
  • 11
  • 32

1 Answers1

6

In the project window, right click on your "src" folder, and then choose "Mark Directory as -> Sources root."

Then come back to run configuration and choose your class. It should appear in the first tab ('Search by Name') itself.

Bajal
  • 5,487
  • 3
  • 20
  • 25