I have intellij-idea installed. Although I have set JAVA_HOME environment variable referring to "C:\Program Files\Java\jdk1.8.0_45" but when I try to run it, I end up with the following error:
failed to create JVM: error code -1. JVM path: "C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.2\jre64\" if you have a 64-bit jdk installed, define a JAVA_HOME variable in Computer> system variables> system settings> environment variables.
Windows 7_ 64-bit
Note that there are 2 .vmoptions files. There is the one in the bin directory and an override in %HOMEPATH%\IntelliJIdea\config
For me the answer was to remove -Xmx and -Xms options from the override file.
My workaround was to go to C:\Users\{username}\AppData\Roaming\JetBrains\IntelliJIdea2020.3\idea64.exe vmoptions file and delete the whole content. The error disappeared and IntelliJ started normally.
Please check your phpstorm64.exe.vmoptions
file located at bin
folder and remove option
-XX:+UseG1GC
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With