background
After installing webstorm, open webstorm in the desktop icon or start menu, and Failed to load JVM C:\Program Files\JetBraints\WebStorm ....\ jvm.dll
an error message will appear, as shown below:
I was wondering, after checking JDK and JAVA_HOME, everything was normal . I checked the following facts:
-
Both the system and jdk are 64-bit
Who has a 32-bit system in this day and age? Who would choose 32-bit jdk?
-
The installed JDK is 1.8
webstorm is indeed written in java and requires jre to run itself
But I think webstorm won't depend on the version of jre in the jdk I installed when it starts, right?
Shouldn't I use the jre in the jdk I installed to start and run webstorm?
-
The JAVA_HOME environment variable is correct and
echo %JAVA_HOME%
can output results. -
where java
, there is nothing suspiciousjava --version
evenjavac --version
displayed
Solution
Use "Run as administrator" to open, this is how I solved it.
I really don't know why it needs to be run as an administrator. Moreover, the error message prompted was also confusing to Monk Zhanger.
Some people on the Internet will say that you are running a 32-bit version and you need to run a 64-bit version. Here is his screenshot:
But the version I installed is no older than his version. There is no 32-bit version for a long time, and there is only a 64-bit version. Therefore, there is no problem that the number of digits of the running webstorm is incorrect.
How to double-click to open as administrator by default?
Find the program itself, i.e. webstorm64.exe, right-click, select "Properties", select "Compatibility", check "Run this program as an administrator" and click "OK"