I had this problem when trying to run PHPStorm through the command line (add the phpstorm bin folder to your path, and you should be able to do, for example, phpstorm.exe. ) - my locally installed one 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 set up the Path environment variable, you can run PhpStorm commands.
adding the path to jdk PHPStorm comes bundled with JAVA_HOME ( setx JAVA_HOME "C:\Program Files (x86)\JetBrains\PhpStorm 2019.1\jre64" ) does not solve the problem, because by default phpstorm.exe tries to find 32-bit JDK
I needed to specifically use the 64-bit phpstorm application
phpstorm64.exe.
source share