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 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
binfolder 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 .