Eclipse returns error on run: “java selection does not contain a main type”
问题 I am unable to run the following code in Eclipse (Eclipse IDE for Java Developers, Version: Indigo Service Release 1, Build id: 20110916-0149), and I think that I may have a configuration problem in Eclipse (but I do not know what or where): class Saluton { public static void main(String args[]) { String greeting = "Saluton mondo!"; System.out.println(greeting); } } I am also running against Java 6 (1.6.0_29-b11-402) on Macintosh 10.7.2. When I run this, I get the error: "java selection does