PDA

View Full Version : Eclipse Java IDE Issue


enat66
September 5th, 2007, 07:42 PM
I'm new to java programming but am taking an introductory class in it. The class uses the Eclipse IDE.

Now my problem occurs when I try to do the standard first program "Hello World." After triple checking my syntax with the book I keep getting this error: "Selection does not contain a main type" whenever I try to actually run the script I write. I duplicated the steps we did in class on the class computers exactly and it gives me this error whenever I write anything on my computer.

What am I doing wrong?

Thanks in advance.

enat66
September 6th, 2007, 03:23 AM
Solved. For future reference:

Try installing the latest Java JDK and then in your IDE (such as eclipse) set it to use the JDK and not the JRE. I'm sure there is a good reason why this is but just go with it for now.