Myeclips运行的的时候出现Could not find the main class:Main. Program will exit.
2014-04-27 15:20
232 查看
查了一下资料,发现是myeclipse的编译器java的Compiler和配置的jre版本不匹配,自己配置过程发现编译器版本不大于配置的JRE版本就是可以的。
修改的方法如下:
请确认J***A编译器和JRE版本一致 右键点击项目--->>>preference-->>>J***A compiler 查看编译器版本 右键点击项目--->>>build path--->>>Configure build path--->>>Libraries-->>JRE system library 查看JRE版本 如果不一致,修改成一样即可
我修改的过程中 调试过几遍,
右键工程中的Build path》》Libraries中 添加libraries
找到相对应的jre就基本是可以编译运行了
相关文章推荐
- java程序运行时出现问题:Could not find the main class: test_jena. Program will exit.
- 安装java的时候出现Could not find the main class.program will exit
- 解决运行java application时提示Could not find the main class.Program will exit.问题
- myeclipse启动tomcat 出现could not find the main class Program will exit
- Eclipse 运行项目抛UnsupportedClassVersionError弹出yunCould 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:xx.program will exit
- <综合>java virtual machine launcher 提示 could not find the main class,program will exit 问题
- JAVAEclipse:could not find the main class,program will exit!
- Could not find the main class Program will exit
- runnable jar 不能在win7打开,显示错误: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 出错:Could not find the main class. Program will exit
- Could not find the main class. Program will exit
- Could not find the main class. Program will exit
- Could not find the main class program will exit的终极解决办法,神坑
- could not find the main class,program will exit
- Debian配置JAVA环境报错之Could not find the main class: HelloWorld. Program will exit.
- Eclipse运行异常:Could not find the main class. Program will exit.