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 have faced the same problem and in my case, just right click and "Run as administrator", everything works fine.
P.S. I am using Windows 10 in our company's domain.
If you are installing Intellij Idea on a 32 bit System - the JDK will not come within the bundle.
To fix this issue follow the steps below :
1.Uninstall the installed Intellij IDEA
2.Download and install JDK SE 8 from this link : https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
3.Install Intellij IDEA
Viola !
I had this issue when trying to start PHPStorm via the command line (add the phpstorm bin folder to your path, and you should be able to do eg phpstorm.exe .
) - my local installed worked fine.
see also https://www.jetbrains.com/help/phpstorm/working-with-the-ide-features-from-command-line.html:
Add the path to the PhpStorm
bin
folder to the Path environment variable (for example,C:\Program Files\JetBrains\PhpStorm\bin
). After you configured the Path environment variable, you can run the PhpStorm commands.
adding the path to the jdk PHPStorm comes bundled with as JAVA_HOME
(setx JAVA_HOME "C:\Program Files (x86)\JetBrains\PhpStorm 2019.1\jre64"
) doesn't solve the issue as the default phpstorm.exe
tries to find a 32-bit jdk
I needed to specifically use the 64-bit phpstorm application
phpstorm64.exe .
I fixed this issue by:
JAVA_HOME
environment variable to the location of the JDK I wanted to use e.g. C:\Program Files\Java\jdk1.8.0_171
C:\Program Files (x86)\java\jdk1.8.0_112\jre\bin\server\jvm.dll
in Path
with %JAVA_HOME%\bin
as suggested by DimaSanC:\ProgramData\Oracle\Java\javapath
The last step was crucial for me, this was overriding JAVA_HOME
.
Can be several reasons:
1). Check that your jdk-byte architecture is the same as your os-byte. So, 32-nit architecture needs 32-bit jdk, 64 bit architecture needs 64 bit jdk.
2). If you're running a 64-bit architecture, use (idea64.exe, phpstorm64.exe, etc.). On the 32-bit architecture use (idea.exe, phpstorm.exe, etc), to launch intelli-j products from the command line or terminal.
To fix I didn't need to touch my environment variables.
I fixed that issue by installing/re-installing the latest PHPStorm version choosing the option to keep old settings, logging out from Windows and logging back in.