JAVAEclipse:could not find the main class,program will exit!

简介:

JAVAEclipse:could not find the main class,program will exit!

遇到这个错误主要是当前的工程的jdkeclipse的版本配置不匹配造成的,修改方法如下:

在当前工程点右键选择Properties->Java Compiler->选中Enable project specific settings->JDK Compliance中的Compiler compliance level:改为1.5或者1.4就可以了。


本文转自sucre03 51CTO博客,原文链接:http://blog.51cto.com/sucre/423997,如需转载请自行联系原作者

相关文章
|
Java Maven Spring
|
7天前
|
Linux
报错 Package ‘oniguruma‘, required by ‘virtual:world‘, not found
报错 Package ‘oniguruma‘, required by ‘virtual:world‘, not found
6 0
|
8月前
|
Java
Java Error: The public type HelloWorld must be defined in its own file
Java Error: The public type HelloWorld must be defined in its own file
93 0
|
Linux
编译OpenJDK8:error: control reaches end of non-void function [-Werror=return-type]
编译OpenJDK8:error: control reaches end of non-void function [-Werror=return-type]
145 0
How to find unit test class by code
Created by Wang, Jerry, last modified on Dec 20, 2014
101 0
How to find unit test class by code
|
Java 应用服务中间件 Android开发