Java application not run in Eclipse Galileo
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 contai开发者_开发技巧n a main type
Change the method signature to
public static void main(String[] args)
and retry.
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
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.
精彩评论