Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

failed to create the java virtual machine

Tags:

java

aptana

I have downloaded and installed aptana 3.0.6.

But when I try to start it up it comes with the message

"Failed to create the Java Virtual Machine".

Eclipse runs without problems. So, the Java Virtual Machine seems to run properly. I am running on a 64-bits Windows 7.

like image 531
Jozef Motmans Avatar asked Dec 19 '11 13:12

Jozef Motmans


People also ask

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

You can also solve this issue by removing the value "256m" under the line "-launcher. XXMaxPermSize". Deleting eclipse. ini worked from me, i think eclipse will require it in future.

Why is Java Virtual Machine not working?

The Java Virtual Machine error often arises when Java needs a larger global maximum heap memory size. Users have fixed the issue by expanding the maximum RAM allocated to Java. Users can do that by establishing a new Java System Variable as described above.

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?

Inside the System Properties screen, go to the Advanced tab and click on Environment Variables. In the Environment Variables window, click on New (under System Variables). Inside the New System Variable window, set the Variable name to _JAVA_OPTIONS and the Variable value to –Xmx512M and click Ok to save the changes.


2 Answers

This started happening to me after I tweaked Aptana performance. In my case main problem was that i putted Xmx1024m (instead od default 512 M) in my aptanastudio3.ini, but when i lowered it to Xmx768m everything started working.

like image 196
Nemke Avatar answered Sep 30 '22 12:09

Nemke


had the same issue with Aptana 3.6.0 on Windows 10 started happening after a windows update. Java update didn't help

in AptanaStudio.ini file commented out

-vmargs

that solved it for me.

like image 26
buzibuzi Avatar answered Sep 30 '22 12:09

buzibuzi