Error in eclipse running project editor does not contain a main type
Error reason: the current source package is not added to build path
Solution: right click the item — > Build path—> Configure Build path…
Source—> Add Folder
Check the corresponding directory — > OK
Run the program again, and the error message will not appear