Error: Selection does not contain a main type
Right click on the folder where you put your main class then click on Build Path –> Use as Source Folder. Finally run your main file as java application. Hope this problem will be solved. If the option ‘Use as Source Folder’ is not visible then inside the ‘Build Path’ select the option ‘Remove from … Read more