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
|
4月前
|
数据库 Python
Traceback(most recent call last):File "main.py", line 4l,in<module>alueError: sleep length must be n
Traceback(most recent call last):File "main.py", line 4l,in<module>alueError: sleep length must be n
|
8月前
Could not find method debug()
Could not find method debug()
265 59
|
6月前
|
Python
Cannot find reference ‘args‘ in ‘__init__.pyi‘ ,request要写对
Cannot find reference ‘args‘ in ‘__init__.pyi‘ ,request要写对
|
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
182 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]
198 0
|
Java 应用服务中间件 Android开发