As a Java application, PhpStorm requires a Java runtime environment (JRE). By default, PhpStorm uses JetBrains Runtime (a fork of OpenJDK), which is included with the IDE. JetBrains Runtime fixes various known OpenJDK and Oracle JDK bugs, and provides better performance and stability. However, in some cases you may be required to use another Java runtime or a specific version of JetBrains Runtime.
warning
Changing the boot Java runtime may cause unexpected problems. Do not change it unless you were specifically asked to do so by JetBrains support.
Switch the Java runtime used to run PhpStorm
In the main menu, go to Help | Find Action or press CtrlShift0A.
Find and select the Choose Boot Java Runtime for the IDE action.
Select the new desired runtime and click OK.
If necessary, you can change the location where PhpStorm will download the selected runtime.
Wait for PhpStorm to restart with the new runtime.
When you open the Choose Boot Runtime for the IDE dialog for the first time, it may take a while to load the list of JetBrains Runtime builds from the server.
To use a different Java runtime available on your computer, select Add Custom Runtime under Advanced in the New field. PhpStorm lists all the JDKs and JREs that it was able to detect. Select one or click Add JDK to specify the location of the desired Java home directory.
To reset back to the default runtime that the IDE initially used, click Use Default Runtime.
note
When using a non-default Java runtime for PhpStorm, it will not update with the IDE and may not be compatible with the new version. Reset back to the default runtime when updating PhpStorm to get the latest compatible version of JetBrains Runtime.
The path to the selected runtime is stored in the phpstorm.jdk or phpstorm64.jdk file in the PhpStorm configuration directory. If there are problems with the selected runtime, you can delete this file to revert to the default runtime.
You can also override the runtime used for PhpStorm by adding the PHPSTORM_JDK environment variable with the path to the desired JDK home directory.
Thanks for your feedback!
Was this page helpful?
Cookie Settings
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions. Learn more.
With your consent, JetBrains may also use cookies and your IP address to collect individual statistics and provide you with personalized offers and ads subject to the Privacy Notice and the Terms of Use. JetBrains may use third-party services for this purpose. You can adjust or withdraw your consent at any time by visiting the Opt-Out page.