My friend and I both have IntelliJ and just want to run plain old java. Every time I make a new java class, I can automatically run it. The configurations just work.

When my friend wants to run it, he has to go to edit configurations and type in the class name. We went through the exact same setup. How do we make it automatically the main function in the class?

Friend's

[![enter image description here](https://i.stack.imgur.com/1OCYa.png)](https://i.stack.imgur.com/1OCYa.png)
[![enter image description here](https://i.stack.imgur.com/hPyO9.png)](https://i.stack.imgur.com/hPyO9.png)

MINE Macbook Pro

[![Thing](https://i.stack.imgur.com/iKbS6.png)](https://i.stack.imgur.com/iKbS6.png)