Unable to run Java code with Intellij IDEA

后端 未结 12 2473
说谎
说谎 2020-12-14 05:18

I have just downloaded the IDE, and I want to edit my first Java file with it, I\'m not interested in creating a whole project, just editing the single file.

So I op

12条回答
  •  感情败类
    2020-12-14 06:11

    If you are just opened a new java project then create a new folder src/ in the man project location.

    Then cut and paste all your package in that folder.

    Then Right click on src directory and select option Mark Directory As > Sources Root.

提交回复
热议问题