Can't choose class as main class in IntelliJ

后端 未结 3 1312
臣服心动
臣服心动 2021-01-30 07:48

I have a Java project in IntelliJ to which I just added a bunch of files in a nested folder hierarchy. Many of these files are tests and include the main method, so I should be

3条回答
  •  粉色の甜心
    2021-01-30 08:40

    Select the folder containing the package tree of these classes, right-click and choose "Mark Directory as -> Source Root"

提交回复
热议问题