In Eclipse, when you create a new class, you can select the option "Which methods stubs would like to create:" and you can choose " public static void main(String args[])".
I have created a class with a main method, but I haven't checked that option and I receive this error: "selection does not contain a main type in eclipse". How can I show Eclipse that I have a main method in the class, without deleting/recreating the class file?
Later Edit: :) My mistake: My main method looks like this: public static void main(String args) and because of this, I received the error message.