View the step-by-step solution to:

Question

I am trying to run a snake game program I designed in java on eclipse and I keep getting this notification

whenever I try to run the game or test classes


"Launch error - editor does not contain a main type"


It is all in an eclipse java project called practice 1, in this project there is the JRE system library, src, classes, and gifs.


All my classes and text files with game info are in the folder classes and all images for the game are in folder gifs, src is empty. I would appreciate knowing how to stop getting this launch error so i can run my program, thanks!


This is not complicated, why would it throw this error? I believe image files need to be under the root directory.

Top Answer

Assuming your class has a public static void main function, I would assume it has to do... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question