Java application not run in Eclipse Galileo

797 views Asked by At

I have Eclipse Galileo. I created a new Java project but couldn't run the application. I get the following launch error:

Selection does not contain a main type

The sample error screenshot

3

There are 3 answers

0
Cyril Deba On BEST ANSWER

The signature of the main method is shown below:

public static void main(String[] args)

Also, the following link may be beneficial for you:

http://download.oracle.com/javase/tutorial/getStarted/application/index.html

0
lobster1234 On

Change the method signature to

public static void main(String[] args) 

and retry.

2
Nick On

Nothing wrong with your environment, there really is no entry point to your project. The main method in the screenshot does not have the String[] args parameter. This is not C/C#/C++. You have to specify the String[] args no matter if you use them or not.