Nothing happens when running Java project in Intellij

Asked

Viewed 558 times

0

I’m trying to run a project in Java but going to "Run" -> "Run" or Alt+Shift+F10 and nothing happens. The terminal doesn’t show anything, even though it has System.out on main. Only my colleagues have the same project running on Intellij on their machines. The project is properly synchronized via Github Desktop.

I tried everything, but when run it does not run and only opens a Configure Run Window with templates, but still does not work.

The prints are in sequence:

inserir a descrição da imagem aqui

Then I go in the Run tab and click on Run

inserir a descrição da imagem aqui

Then open a menu to configure the execution. I already selected Aplication there and tried to indicate which is the main class, but Intellij won’t let me put it.

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

In the "Application" template I type the name of the main class, yet the system won’t let me Run.

inserir a descrição da imagem aqui

1 answer

1


Your project is not configured correctly. The red symbol in the class name says you are not considering code.

Modify in File > Project Structure > Modules

Check to be the src that is correct.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.