When eclipse is started, the following error occurs: failed to create the Java Virtual Machine.

Source: Internet
Author: User

In the past, I used eclipse-jee to delete bugs during project deployment. Today, I went to the eclipse official website to download another Eclipse IDE for Java EE developers.

Version is: eclipse-jee-helios-SR1-win32.zip

My JDK version is: 1.6.0 _ 20

After decompression, start and find the prompt box "failed to create the Java Virtual Machine"


Find a solution to this problem on the Internet. Find a few, all of which are ctrl c/V, without a half-sentence explanation.

Later, I searched on the forum on the eclipse Official Website Based on the unsatisfactory English proficiency and found this problem a bug.

"The Java bug was closed for voting and comments at 6969236 on the Java bugparade because the change has been reverted; the related eclipse bug report is open for oting and comments at Bug 319514. -reference the eclipse Official Website

Before the release of the fix version, it provides a solution:

Open the eclipse. ini file in the eclipse directory and modify the-launcher. xxmaxpermsize attribute. The attribute has two

-Startup
Plugins/org. Eclipse. Equinox. launcher_1.1.0.v20100507.jar
-- Launcher. Library
Plugins/org. Eclipse. Equinox. launcher. win32.win32. x86_1.1.1.r36x_v20100810
-Product
Org. Eclipse. EPP. Package. Jee. Product
-- Launcher. defaultaction
Openfile
-- Launcher. xxmaxpermsize
256 m
-Showsplash
Org. Eclipse. Platform
-- Launcher. xxmaxpermsize
256 m
-- Launcher. defaultaction
Openfile
-Vmargs
-Dosgi. requiredjavaversion = 1.5
-Xms40m
-Xmx512m

Change the value to MB, as shown below. (In fact, you only need to change the next one. When eclipse is started, it will prevail)

-Startup
Plugins/org. Eclipse. Equinox. launcher_1.1.0.v20100507.jar
-- Launcher. Library
Plugins/org. Eclipse. Equinox. launcher. win32.win32. x86_1.1.1.r36x_v20100810
-Product
Org. Eclipse. EPP. Package. Jee. Product
-- Launcher. defaultaction
Openfile
-- Launcher. xxmaxpermsize
128 m
-Showsplash
Org. Eclipse. Platform
-- Launcher. xxmaxpermsize
128 m
-- Launcher. defaultaction
Openfile
-Vmargs
-Dosgi. requiredjavaversion = 1.5
-Xms40m
-Xmx512m

Then you can start it successfully.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.