JAVAEclipse:could not find the main class,program will exit!
2010-11-15 21:41
483 查看
JAVAEclipse:could not find the main class,program will exit![/b]
遇到这个错误主要是当前的工程的jdk与eclipse的版本配置不匹配造成的,修改方法如下:
在当前工程点右键选择Properties->Java Compiler->选中Enable project specific settings->将JDK Compliance中的Compiler compliance level:改为1.5或者1.4就可以了。
本文出自 “博客即日起停止更新” 博客,谢绝转载!
遇到这个错误主要是当前的工程的jdk与eclipse的版本配置不匹配造成的,修改方法如下:
在当前工程点右键选择Properties->Java Compiler->选中Enable project specific settings->将JDK Compliance中的Compiler compliance level:改为1.5或者1.4就可以了。
本文出自 “博客即日起停止更新” 博客,谢绝转载!
相关文章推荐
- Java执行main方法,异常为:could not find the main class.program will exit
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- 解决运行java application时提示Could not find the main class.Program will exit.问题
- [Eclipse] Could not find the main class. Program will exit
- Eclipse 出错:Could not find the main class. Program will exit
- 安装java的时候出现Could not find the main class.program will exit
- java virtual machine launcher Could not find the main class. Program will exit
- java调用本地方法的时候报错 could not find the main class:xx.program will exit
- Eclipse运行异常:Could not find the main class. Program will exit.
- 解决java virtual machine launcher could not find the main class. program will exit
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- Eclipse 运行项目抛UnsupportedClassVersionError弹出yunCould not find the main class.program will exit
- <综合>java virtual machine launcher 提示 could not find the main class,program will exit 问题
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法 .
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法 .
- java程序运行时出现问题:Could not find the main class: test_jena. Program will exit.
- Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 错误的解决办法
- Java执行main方法,异常为:could not find the main class.program will exit