Java Virtual Machine Launcher: A Java Exception has occu

标签:
itjavavirtualmachinelaunch |
分类: Java/Android |
卸载了jdk1.8重新安装jdk1.7,在Eclipse中运行java程序,出现报错:
Java Virtual Machine Launcher: A Java Exception has occurred
http://s9/mw690/001ZkYorgy6M1hH3ALKd8&690Virtual
检查了环境变量没有错误等等之后,找到解决办法:
1.点击Project,选择Properties
http://s13/mw690/001ZkYorgy6M1hJft1O5c&690Virtual
2.选择Java Build Path,并在Libraries选项卡里面,Remove较高版本的JRE System Library
http://s9/mw690/001ZkYorgy6M1hLXj6w18&690Virtual
3.点击Add Library,并选择JRE System Library,然后点击Next
http://s12/mw690/001ZkYorgy6M1hPqMT99b&690Virtual
4.在接下来的页面,不要默认的选择Workspace default JRE(jre),而是选择Execution environment,然后在下拉选择框中,选择自己新安装的低版本的jre,然后点击Finish
http://s5/mw690/001ZkYorgy6M1hQHI5m04&690Virtual
重新编译后,问题解决