Error in Eclipse launch configuration: 1 references non-existing project begins

I have created a java project following these steps:

1.File->java project
2. Created the package.
3. Created the main class.
Wrote the 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 the error when I run the program

Launch configuration .1 references non-existing project begins.
Could you please let me know what can be the reason for it?

asked May 25, 2015 in Core java by rajesh
0 votes

1 Answer

0 votes

Please try to run it by right-clicking on your source file and select: "Run As -> Java Application".

answered May 25, 2015 by rajesh