IntelliJ doesn't recognize java project after cloning

前端 未结 4 1151
北荒
北荒 2021-02-01 12:53

I\'ve cloned my repo from bitbucket and I am trying to open it in IntelliJ IDE, but i can\'t set Debug Configuration, can\'t set Main class in Application menu. I can\'t also ad

4条回答
  •  情话喂你
    2021-02-01 13:24

    You have to mark your src directory as Source Root.

    Right-click on the src folder and select Sources Root:

    enter image description here

    Then you'll see that the icons will change:

    enter image description here



    EDIT

    Check the output path by bringing up the Project Structure view.

    Press Ctrl+Alt+Shift+S

    enter image description here

提交回复
热议问题