|editor does not contain a main type||0.04||0.2||2863||31|
|editor does not contain a main type eclipse||1.73||0.5||7975||50|
|editor does not contain a main type java||1.01||0.1||4032||64|
|editor does not contain a main type 오류||0.53||0.1||2230||22|
|editor does not contain a main type什么意思||0.7||0.3||7676||86|
|editor does not contain a main type error||1.91||0.7||6524||5|
|editor does not contain a main type是什么意思||0.55||0.2||5206||98|
|editor does not contain a main type翻译||0.22||0.2||9938||78|
|editor does not contain a main type 이클립스||1.18||0.3||3618||78|
|editor does not contain a main type myeclipse||1.88||0.4||5405||70|
|java editor does not contain main type||0.13||0.5||3724||57|
Make sure your Launch Configuration is pointed to ServerMain, and if it isn't, make sure you do Run As > Java Application. Also some more questions that deals with this that could be helpful, Eclipse error: "Editor does not contain a main type" Editor does not contain a main type.What does it mean when editor says main method is not found?
Basically, this type of Error means your Editor is not able to find the “main” method in any of your current program classes. The editor shows this error because when you want to run the project, at that time, the interpreter couldn’t find the main function to start the execution of the program.Why can't I run a main type in a subdirectory?
One more thing to check: make sure that your source file contains the correct package declaration corresponding to the subdirectory it's in. The error mentioned by the OP can be seen when trying to run a "main type" declared in a file in a subdirectory but missing the package statement.Why is my main method not working in Eclipse?
If .class file or project file is not present in your workspace at that time it will occur. If you are using Eclipse for java Programming and you have not declared the main method as public.