Unable to run Java code with Intellij IDEA

后端 未结 12 2501
说谎
说谎 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:48

    If you can't run your correct program and you try all other answers.Click on Edit Configuration and just do following steps-:

    1. Click on add icon and select Application from the list.
    2. In configuration name your Main class: as your main class name.
    3. Set working directory to your project directory.
    4. Others: leave them default and click on apply. Now you can run your program.enter image description here

提交回复
热议问题