FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)

在Eclipse用jdk1.8和maven编译compile项目,结果显示success,但是后面还跟着好几行错误提示,第一行就是FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)。一搜发现只要改一下eclipse.ini文件的配置就可以解决了。
1.
Adding following lines in eclipse.ini file solved the issue.
-vm
C:\Program Files\Java\jdk1.8.0_91\bin\javaw.exe

Make sure you have add the above lines separately and above the following line
–launcher.appendVmargs
-vmarg

2.
把-Dosgi.requiredJavaVersion=1.6改为 -Dosgi.requiredJavaVersion=1.8

你可能感兴趣的:(java笔记)