Error Launching Idea (Java_Home)
Answered
Hello,
I'm having trouble with starting up IDEA. It says:
"If you already have a 64-bit JDK installed, define a JAVA_HOME variable in Computer>System Properties>System Settings>Environmental Variables,
Failed to create JVM. JVM Path: C:\Program Files\JetBrainsIntelliJ IDEA2019.2.2\jbr\"
I have a 64bit Windows 10 OS, a jdk 11 64bit. Only for the user I use I made the JAVA_HOME. Adding it to the SYSTEM environmental variables didn't help.
I have JAVA_HOME(C:\Program Files\Java\jdk-11.0.4) set correctly, and I've read the post https://intellij-support.jetbrains.com/hc/en-us/articles/206544879
I have no idea what the problem could be. Thanks for any help in advance:
Andrew
Please sign in to leave a comment.
Please run using idea.bat, do you see any details in the console?
Does it help if you delete the custom .vmoptions file located in the config directory? See https://intellij-support.jetbrains.com/hc/articles/206544869 and https://intellij-support.jetbrains.com/hc/articles/206544519 .
I deleted the .vmoptions file, and now it works nicely. Thank you!
PS: Why deleting this file helped? I'm just curious.
This file probably contained some invalid option. Running the .bat file would provide more details.
Please where is .vmoptions file located? I couldn't find it. Thanks.
See https://intellij-support.jetbrains.com/hc/articles/206544869 .
Recently I changed my .vmoptions in Pycharm (help-> edit custom vm options) to prevent the MemoryError that python ran into. after a restart I had the same problem. 'Failed to create JVM'
There are two .vmoption files. One is allocated in the installation path of pycharm to find in {{YourInstallationPath}}\bin\pycharm64.vmoptions. But be aware, this one is overwritten by starting pycharm by the second one You will find in the next passage
the other one is under C:\Users\ {{YourUsername}} \Pycharm\config . This one includes all changes you have made. In my case undoing the changes ,that I've done before, helped me to Restart pycharm. In my case creating the environmental variable didn't help also
hello
How did you fix this ? Can you teaching for me ! Thank you so much
Hello,
You need to check your vmoptions files (see https://intellij-support.jetbrains.com/hc/articles/206544869). I can send default one if you need.
@...
Could you please send me a default one?
I also have this issue on Windows 10 (only for the EAP version which is install through the toolbox!) and not the one manually installed stable version.
You can find the default .vmoptions file in the bin directory of the IDE installation. The one you modify is in the config directory, if you delete it, IDE will use the default .vmoptions, see also https://intellij-support.jetbrains.com/hc/en-us/articles/206544869.
If you changed the default .vmoptions file in the bin directory, reinstall the IDE from https://www.jetbrains.com/idea/download/index.html.
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! :)