Unable to run Java code with Intellij IDEA

后端 未结 12 2490
说谎
说谎 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 05:49

    If you use Maven, you must to declare your source and test folder in project directory.

    For these, click F4 on Intellij Idea and Open Project Structure. Select your project name on the left panel and Mark As your "Source" and "Test" directory.

提交回复
热议问题