Resolve the eclipse startup error: failed to create the Java virtual machine

Failed to create the Java virtual machine pops up when eclipse starts

1、 Phenomenon

The error of failed to create the Java virtual machine occurred when installing eclipse today.

The error picture is as follows:

2、 Error reason

Translate the error prompt as "unable to create Java virtual machine". In fact, this means:

My version of eclipse is incompatible with the virtual machine

3、 Find errors

As we know, eclipse uses the Java running environment of the system, that is, our own Java virtual machine, that is, our own JDK.

(this is different from the running environment of MyEclipse. The Java running environment of MyEclipse I use comes with the software.)

So I looked at the eclipse configuration file, eclipse.ini.

I was surprised to find that the JDK required for eclipse neon. 3 (4.6.3) is version 1.8, while my own JDK is only version 1.78.

Then I changed the JDK version and the problem was solved.

4、 Experience

When a mistake occurs, look at it carefully, and then think about the possible causes of the mistake

After an error, check the configuration file and system log to find out the cause of the error

The above is the explanation to solve the eclipse startup error: failed to create the Java virtual machine. If you have any questions, you can leave a message or go to the community of this site for communication and discussion. Thank you for reading. I hope it can help you. Thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>