先介绍一下错误
再说一下本机环境,64位系统+64位Eclipse+64位JDK,按理说应该是没有问题的,但是还是出现了上图的错误。
在网上找了很多解决方案,主要是在Baidu上找的 :),均不能解决
于是来的StackOverFlow网站中,找到一个解决方案
-vm
C:\Java\jdk1.7.0_79\jre\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.8
务必记得在-vmargs这个语句的上面
然后就可以运行了。
贴上原文如下
Do you have a 32-bit or 64-bit JVM? Did you download the 32-bit or 64-bit version of Eclipse? They must agree (both be the same bitness) before it will run.
On my 64-bit Win7 system I have both 32-bit and 64-bit JVMs installed. To ensure that I get the right one for Eclipse I add this entry to the eclipse.ini file (note that it is two separate lines):
像其他的如
我实际操作的时候发现这类方法是不可以的:)