Home>Article>Java> Eclipse cannot create java virtual machine

Eclipse cannot create java virtual machine

Jennifer Aniston
Jennifer Aniston Original
2019-11-12 16:35:48 3002browse

Eclipse cannot create java virtual machine

Eclipse cannot create a java virtual machine

Sometimes you will encounter the "Failed to create the Java Virtual Machine" error when starting eclipse. This is a bug in lower versions, as follows Let’s see how to solve it.

Recommended tutorial:java tutorial

##Solution:

Open the eclipse.ini file in the eclipse directory, modify the

–launcher.XXMaxPermSizeproperty, and change its value to 128m

-startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502 -vm %JAVA_HOME% -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 128m --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m

Then it can be started successfully.

The above is the detailed content of Eclipse cannot create java virtual machine. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn