开发者

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

Java application not run in Eclipse Galileo


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜