安装java的时候出现Could not find the main class.program will exit
2012-11-21 00:24
603 查看
如果 code 和环境变量配置没有错误。最可能的原因是 jdk与jre的版本不对。例如用jdk1.7编写的code,如果用jvm1.6去运行,将会出现RT情况。
在本机的电脑中本身已经安装了jre1.6. 而在oracle网站上下载的jdk1.7安装的时候 也会安装jre1.7,由于低版本的jre存在,导致了
jre1.7无效。因此删除jre1.6即可。
jdk安装和环境变量配置 refer to http://hi.baidu.com/tangjackaa/item/b1f0d91fa8a0e4446826bbfb
jdk以及jre版本问题 refer to http://blog.csdn.net/wangcheng8080/article/details/2492265
在本机的电脑中本身已经安装了jre1.6. 而在oracle网站上下载的jdk1.7安装的时候 也会安装jre1.7,由于低版本的jre存在,导致了
jre1.7无效。因此删除jre1.6即可。
jdk安装和环境变量配置 refer to http://hi.baidu.com/tangjackaa/item/b1f0d91fa8a0e4446826bbfb
jdk以及jre版本问题 refer to http://blog.csdn.net/wangcheng8080/article/details/2492265
相关文章推荐
- Myeclips运行的的时候出现Could not find the main class:Main. Program will exit.
- java调用本地方法的时候报错 could not find the main class:xx.program will exit
- java程序运行时出现问题:Could not find the main class: test_jena. Program will exit.
- java could not find the main class:Welcome. 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 virtual machine launcher Could not find the main class. Program will exit
- myeclipse启动tomcat 出现could not find the main class Program will exit
- 解决运行java application时提示Could not find the main class.Program will exit.问题
- JAVAEclipse:could not find the main class,program will exit!
- 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 的解决方法
- 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 的解决方法
- Debian配置JAVA环境报错之Could not find the main class: HelloWorld. Program will exit.
- Java执行main方法,异常为: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 的解决方法
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法