A process to solve Intellij IDEA can't load jvm DLL error

problem, so I downloaded the zip package of Redhat OpenJDK8, decompressed it, set the JAVA_HOME environment variable, and added %JAVA_HOME%\bin to the PATH environment variable. Check that the environment variables are set correctly in cmd and Git Bash, but when Intellij is started, the same error still occurs.

Then install the exe package of Redhat OpenJDK8, repeat the above steps, the same error.

Then install the exe package of Oracle JDK8, repeat the above steps, the same error.

Then I remembered that Intellij should have its own JVM for starting Intellij itself, and check the DLL file of \jbr\bin\server\jvm.dll in the error message, which also exists, which is puzzling.

Then try to download and install Microsoft Visual C++ 2010 Redistributable Package (x64) according to an answer on Stackoverflow, the same error.

I also suspected that the Intellij shortcut pointed to the wrong point, but the inspection was correct, and running idea64.exe manually was also the same error.

Then I saw another answer on Stackoverflow mentioning that using Run as adminstrator in Windows 10 can solve this problem. I tried it, and it really works. Then check the properties of the shortcut to Run as adminstrator, so that you don't need to right-click Run as adminstrator every time.

insert image description here

Later, I suddenly realized that the account on my computer should have Administrator permissions, but the permission configuration was wrong, so I changed to another account with Administrator to log in, and then installed and opened Intellij, and everything went well.

Reference documents:

https://stackoverflow.com/questions/40204189/error-launching-idea-failed-to-load-jvm-dll-c-program-files-java-jdk1-8-0-112

https://stackoverflow.com/questions/48666118/error-launching-pycharm-failed-to-load-jvm-dllails/100715182

Guess you like

Origin blog.csdn.net/w8y56f/article/details/131735031