dim mik
dim mik

Reputation: 959

Eclipse compiler error on simple Java class

I am facing a problem while i am trying to compile a code at eclipse in java. The code is the following:

public class New {
    public static void main(String[] args){
        System.out.println("hello world");
    }
}

Parts that have errors are New, String and System. I have checked at error list and the description for error's is like:

  1. Unable to create editor ID
  2. The file does not exist

Any idea why this is happening?

Upvotes: 2

Views: 685

Answers (1)

carlos gil
carlos gil

Reputation: 139

Your project has or classes maybe has beeing dissapeared.

I can give you a possible solution

Solution: Shut down Eclipse IDE Start Eclipse IDE (with -clean to be super-safe) Reimport all projects (UPDATE: Just use File->Import->Existing Project into Workspace and browse your workspace/project directory)

Upvotes: 2

Related Questions