Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij idea showing error: could not create the java virtual machine

I am having trouble with intellij idea ide. It was working fine , but suddenly it started showing error:

Android Dex: [untitled3] Error: Could not create the Java Virtual Machine.
Android Dex: [untitled3] Error: A fatal exception has occurred. Program will exit.

I have checked my sdk, jdk path. i have done re-installing it but still the problem is same. Any help would be appreciated.

Thanks.

like image 314
hemantsb Avatar asked Aug 07 '13 05:08

hemantsb


People also ask

Could not create the Java virtual machine in Eclipse?

Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.” Open your eclipse.ini file and make sure that you add the “-vm” entry above the vm args otherwise, JVM V6 will be selected in env vars.

What is IntelliJ IDEA virtualenv?

IntelliJ IDEA makes it possible to use the virtualenv tool to create a project-specific isolated virtual environment. The main purpose of virtual environments is to manage settings and dependencies of a particular project regardless of other Python projects.

Why doesn't IntelliJ IDEA DETECT Python on my Machine?

If IntelliJ IDEA detects no Python on your machine, it provides two options: to download the latest Python versions from python.org or to specify a path to the Python executable (in case of non-standard installation).

What does it mean when Java installation fails to launch?

This error means that the Java installation on your computer can’t launch the virtual sandbox (virtual machine) within which it would typically launch the Java app. In this guide, you’ll learn a few fixes that can eliminate this error, starting with the most common fix to the less likely solution.


2 Answers

The problem was caused by the too high heap size for the DX compiler, it can be changed here (File | Settings | Compiler | Android DX Compiler).

Check this document that explains why it happens when 32-bit JDK is used.

like image 143
CrazyCoder Avatar answered Oct 28 '22 13:10

CrazyCoder


try this:

navigate to C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1.3\bin and run the " idea64.exe ".

if 64-bit executable is not provided for your product Start the IDE using .bat file instead of the .exe

like image 37
akashrajkn Avatar answered Oct 28 '22 13:10

akashrajkn