"Error launching IDEA"
I see others have had similar problems, but none of the suggestions I've seen have helped so far.
I installed the community version of IDEA a few days ago. It worked fine then. Now I get an error when I try to start it. Perhaps because I installed the Oracle JDK after installing and starting IDEA? I'm not sure if it stopped working the first time after I did that - I think I left it open for a few days using it, so I'm not sure if this is the first time I've tried starting IDEA since installing a JDK.
The error I get when I start it is:
If you already have a 64-bit JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment Variables.
Failed to create JVM. JVM Path: C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.2\jbr\
I think when I first looked there was no JAVA_HOME variable, so I created it and set it to C:\Program Files\Java\jdk-15.0.2 (I used the "browse" option to make sure I didn't mistype anything).
I've tried reinstalling IDEA and the JDK. I deleted all the JetBrains folders I could find (in Program Files and AppData) after uninstalling and before doing a fresh install.
Some threads suggested deleting the .vmoptions file might help, but then I just get an error saying it can't start because there's no .vmoptions file. But if this is a fresh installation I assume that won't make a difference anyway(?)
I tried running idea.bat from command line and got this error:
C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.2\bin>idea.bat
Picked up _JAVA_OPTIONS: C:\Program Files\Java\jdk-15.0.2
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Unrecognized option: C:\Program
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I thought maybe that meant the space in "Program Files" was throwing something off so I tried wrapping it in double quotes in the environment variables and that didn't help.
Please sign in to leave a comment.
Hello,
Try getting rid of the 'space' character in the JAVA_HOME value using a shortened path to the 'Program Files' folder:
That's a good idea that I should have thought of! Unfortunately it didn't help directly and I was still getting an error, but it did help me solve the problem. I looked into it further and although _JAVA_OPTIONS was set to the JDK directory it looks like that's not what it should be. I'm not sure how that happened. Since it looked like it was optional I tried just deleting _JAVA_OPTIONS altogether and now it seems to be working. Thanks for your help!
Hi,
I had the same issue and managed to fix it by deleting the files idea64.exe.jdk and and idea.64.exe.vmoptions located at C:\Users\${your.username}\AppData\Roaming\JetBrains\IntelliJIdea2021.1
I was trying to run the version 2021.1 and after a while I gave up and rolled back to version 2020.3.
When trying to open that one, I faced the same issue but the error message displayed, explained how to fix the problem.
After removing those files form 2020.3 and 2021.1 installation folders, I managed to run both versions.
I'd the same problem and before it I changed a settings of a file (idea64.exe.vmoptions) in IntelliJ, so I removed the property that I put there and boom!! it works again. Maybe you altered and put some new property too, try to do this first, verify the file and compare with the original file. And if now works you can be delete some files to try fix it. Good luck! :)