Wednesday, October 19, 2011

Running IDEA on Windows 64bit JVM

For reasons unknown the Windows download for IntelliJ IDEA defaults to running in a 32bit JRE that comes as part of the distribution. This is particularly annoying on Windows since the 32bit JVM is limited to roughly a gigabyte and a half of heap space.

To run IDEA with an arbitrary JVM the "JDK_HOME" environment variable needs to be set (not "JAVA_HOME"). Then IDEA can be started with the "idea.bat" file in the "bin" directory of the installation.

By default the batch file will leave an extra console window around. This can be avoided by (a) changing from the java.exe executable to the javaw.exe (just add that extra w where the JAVA_EXE is configured) and (b) adding the "start" command in front of the actual call to java.

Note that start assumes that the first quoted parameter is a window name, not a command. That means you need one more quoted parameter in front with arbitrary content. The full line in my file (IDEA 10.5.2) looks like this:



Sankar said...

Thanks for the post, I am techno savvy. I believe you hit the nail right on the head. I am highly impressed with your blog. It is very nicely explained. Your article adds best knowledge to our Java Online Training from India. or learn thru Java Online Training from India Students.

Nerds support said...

Nerds support provides high quality IT services Miami and cloud computing services in Miami and South Florida. Find award winning voip service and its experts in Miami today!

Pavel Co Ebele said...

Great Article
IEEE Final Year Projects for CSE
IEEE Project Centers in Chennai

Amy Wong said...

listen came on this site today and sat down prime live casino Here I was able to relax and have a good time

Rathinam said...

Excellent article and i like your great posts. I want more info from this blog...
Unix Training in Chennai
Best Unix Training in Chennai
Excel Training in Chennai
Oracle DBA Training in Chennai
Spark Training in Chennai
Oracle Training in Chennai
Graphic Design Courses in Chennai
Power BI Training in Chennai
Pega Training in Chennai