Skip to main content

Posts

Showing posts with the label main present but error in eclipse

Editor does not contain a main type

If you get an error "editor doesn't contain a main type" in eclipse, solution is : 1) Make sure eclipse created the project as Java project. 2) Just create a new Java project and copy your class into the src folder by import the eventual dependencies and adding all the jar files to it. This should fix the problem.