Originally Posted by
GregBrannon
Your guess about the error message is a good one. Yes, a main() method is needed as the starting point for a Java class to be runnable/stand alone, though Applets are slightly different animals. However, this isn't an Applet. There were "things" going on behind the scenes in the tutorial you watched (I assume), and the piece of code you copied and pasted into Eclipse was a small piece of a larger whole.
Have you done the basic HelloWorld tutorial/trail to learn the basic parts of a Java program? You can follow the Oracle version and adapt as needed to the Eclipse IDE, or you could do the Eclipse tutorials that are available from the Welcome screen. You can get Eclipse's Welcome screen by selecting "Help" then "Welcome".
Thanks! I followed your advice and went and watched the tutorial again, and realized that the particular thing I was doing required another class (I think that's what it's called) in order to function. I added this other class, and sure enough, it worked! Thanks again! I really appreciate it!