Eclipse启动配置出错:GrammaticalStructure.1引用非现有项目开始

the*_*tna 6 java eclipse

我按照以下步骤创建了一个java项目:

1.File->java project
2. Created the package.
3. Created the main class.
Run Code Online (Sandbox Code Playgroud)

写了简单的程序来打印你好世界

 package misc;
 public class MyMainClass {
    public static void main(String[] args) {
        System.out.println("Hello World");
           }
     }
Run Code Online (Sandbox Code Playgroud)

但是当我运行程序时,我收到错误

Launch configuration GrammaticalStructure.1 references non-existing project begins.
Run Code Online (Sandbox Code Playgroud)

你能告诉我它是什么原因吗?

Fra*_* IV 29

请尝试通过右键单击源文件来运行它,然后选择:"运行方式 - > Java应用程序".