如何设置IntelliJ Idea运行简单的Java应用程序?

use*_*818 2 java eclipse intellij-idea

可能重复:
您好世界不在IntelliJ Idea中运行

我是IntelliJ想法的新手,所以我尝试从HelloWorld:

 package test;

 /**
  * Created with IntelliJ IDEA.
  * Date: 16/06/12
  * Time: 12:13
  * To change this template use File | Settings | File Templates.
  */
 public class Main {
     public static void main(String ...args){
        System.out.println("Hello World");
     }
 }
Run Code Online (Sandbox Code Playgroud)

但是该程序无法运行!只有绿色箭头变灰,但我看不到任何输出。我应该检查哪个设置?谢谢。编译器: 在此处输入图片说明

Vic*_*Vic 5

右键单击main函数名称,然后选择“调试”

创建配置

当上面的右键单击创建当前配置时,“绿色箭头”将运行当前配置。您可以使用Edit Configurations左侧的按钮创建和自定义配置。

在此处输入图片说明