Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting Eclipse results in Failed to create Java Virtual Machine

When starting eclipse.exe it gives and error message

Failed to create Java Virtual Machine

When I click eclipsec.exe then eclipse starts. What is the difference between eclipse.exe and eclipsec.exe?

Why eclipse.exe is not working now which was working yesterday?

What will be impact if I use eclipsec.exe to start eclipse?

like image 836
AmitG Avatar asked Mar 14 '13 09:03

AmitG


People also ask

How do I fix a failed to create Java Virtual Machine?

Open eclipse. ini in Notepad or any other text-editor application, Find the line -Xmx256m (or -Xmx1024m ). Now change the default value 256m (or 1024m ) to 512m . You also need to give the exact java installed version (1.6 or 1.7 or other).

Why I am getting could not create Java Virtual Machine?

The most common cause for the “Could not create the Java Virtual Machine” error is that Java doesn't have enough available memory on your system to launch the VM client.

How do you solve error could not create the Java Virtual Machine error a fatal exception has occurred program will exit?

At 'java Properties" window select the Compatibility tab and below the Settings pane, check the box Run this program as an administrator. Then click Apply and OK. 5. Finally, start the program that cannot run because of the "Could Not Create the Java Virtual Machine" error and see if the problem persists.


1 Answers

Open eclipse.ini file and Change the vmargs sizes to

-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m

It works on my system.

like image 195
UdayKiran Pulipati Avatar answered Sep 21 '22 06:09

UdayKiran Pulipati