startup-error

Error: Selection does not contain a main type

心不动则不痛 提交于 2019-12-16 21:01:53
问题 I am trying to run some java files in a new project. So I make the project, put the files in it and I try to run the main file so my game starts. I get an error that says selection does not contain a main type . I have tried several ways to run it: Some say to launch eclipse again, tried this a dozen times. Somewhere else someone pointed to open a new project and make a build path to the old project. Didn't work either. I am pretty sure it must work because I ran it a few hours ago at school.