Eclipse startup configuration error: GrammaticalStructure.1 refers to a non-existent project

I created a java project by following these steps:

1.File->java project
2. Created the package.
3. Created the main class.

Wrote a simple program to print hello world

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

but I get an error when starting the program

Launch configuration GrammaticalStructure.1 references non-existing project begins.

Could you tell me what could be causing this?

+5
source share
7 answers

Try to launch it by right-clicking on the source file and select: "Run as → Java Application".

+27
source

You can right-click your project and select Run As → Run Configurations. You can edit the "Main class"

+1
source

"src" , " " → " ", " " , . , , , - .

+1

. . . , Build Automatically Clean. .

, Run Configurations . . , Project Main, . .

+1

. , Run as, . , .

, , .

0

. , , Eclipse. . , .

0
source

Haha, the reason is that it can only be run on a PC, in no way on the server.

Nick...

-2
source

All Articles