I've created a project in Eclipse , with a few java sources.One of the classes has and I wish to run this.So I'm doing what I've done many many times before : Right click on the class file ---->Select Run ,then a popup appears I then select "Java Application" under the Configurations list , and click the "New" button at the bottom , which brings out a tabbed windows.Under the "Main" tab , my project name correctly appears in the "Project" field.The "Main Class" field is empty , and a message at the top of the onfig window saying "Main type not specified".I click on the Search button in order to get to select the class I want to run (i.e the main type).A popup appears and the "Matching types" list is empty.The field to type in the class name is greyed out. What am I missing?
The class probably is missing a proper main method?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The names and order of the keywords aren't important, but the method signature must match that statement or the class won't be eligible, because it doesn't contain a valid Main method. And, of course "main" isn't acceptable. Java is case-sensitive, so it's got to be "Main". And, unlike C, the argument declaration and return types must be as indicated.
An IDE is no substitute for an Intelligent Developer.