简体   繁体   中英

eclipse error of “Error occurred during initialization of VM ”

I have a Eclipse project, which got the following error message after running

在此处输入图片说明

The "classpath" setting in "run configurations" is shown as follows

在此处输入图片说明

The "build path" setting is shown as follows:

在此处输入图片说明

It seems to me that you're using System JRE instead of JDK.

From the "Libraries" tab, select "JRE System Library [JavaSE-1.7] > choose Edit > then from popup window > Execution Environment choose JDK environment, eg JavaSE-1.6 (jdk1.6.0_32)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM