The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Re: "Selection does not contain a main type"

Did you do as your instructor asked? Did you compile your code? It sounds to me like he's asking you to compile from the command line, if he's asking you to call javac. Did you do that? What happened when you tried?

Re: "Selection does not contain a main type"

Okay I tried reading what you suggested, and it seems my problem is setting my path correctly to set up the use of "javac". Maybe you can help me here, in environment variables, I go to the bottom portion labelled System Variables and create a new profile. I put both the variable name and value the same. What I paste in was my bin folder, just for reference it was C:\Program Files\Java\jdk1.7.0_03\bin

I then went into command prompt and tried it, still receive that javac isn't working properly.