In Eclipse Package Explorer, you can directly run any class that has a properly defined main method. The main method must be public, static, void, and accept a String array as its parameter. Simply having a public class or constructor is not sufficient for direct execution.