Whenever I open IntelliJ IDEA i get this error:
but I have that defined and I don\'t know why it wont work:
Any help accepted.
I had the same problem - My solution was slightly different.
I needed to install Microsoft Visual C++ 2010 Redistributable Package (x64)
Hope this helps someone else!
Solved it by running Android studio as admin.
Just Check on that path if the jvm.dll
is present just run Android studio as administrator.
Change the following value from your Path
system variable:
C:\Program Files (x86)\java\jdk1.8.0_112\jre\bin\server\jvm.dll
to:
%JAVA_HOME%\bin
Also make sure there are no any other references to Java folders in the Path
variable.
Actually i had installed the Android Studio canary version, and created a short cut of 32-bit on 64-bit windows operating system,
resolved by starting 64-bit version of Android Studio
In my case, this error appeared after signing in to Microsoft account (I use Windows 10). When I logged out, the error dissapeared.
Nothing of the other solutions work for me on IntelliJ 2019.2 which starts to use JDK 11 on boot, so I have to resolve it on my own.
Open C:\Users\.IdeaIC2019.2\config\idea64.exe.jdk and edit it to be:
C:\Program Files\Java\jdk1.8.0_131
Restart IDE.
As documented on https://www.jetbrains.com/help/idea/switching-boot-jdk.html
Note: the path on your machine may be different.