How to Change JRE for PhpStorm on MacOs

It seems that with the latest MAcOs updates, this version has also been updated, which greatly affected the performance of PhpStorm.

Anyway, I decided to upgrade my Java.

Was

$ java -version java version "1.6.0_51" Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509) Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode) 

After downloading the Java SDK from Oracle and installing:

 $ java -version java version "1.7.0_25" Java(TM) SE Runtime Environment (build 1.7.0_25-b15) Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode) 

But in PhpStorm the old JRE is still displayed: old jre

I also restarted my computer, but still the old JRE is displayed.

Please help, how to get PHPStorm to use the new JRE?

+4
source share
1 answer

Quote from "Choosing a JDK Version, the IDE Will Work Under" Knowledge Base Article
published March 27, 2013

Mac OS X

Currently, all of our products require the installation of Apple JDK 1.6 for Mac. Oracle's JDK 1.7 is not yet officially supported and has known issues that prevent us from using it by default. Oracle JDK 1.7.0_40 has added Retina support and works much better than previous versions on Mac. You can try if you have problems with the Apple JDK.

To make JDK 1.7 work, edit the file /Applications/.app/Contents/Info.plist , change the JVMVersion from 1.6 * to 1.7 * :

 <key>JVMVersion</key> <string>1.7*</string> 
  • See this answer for known issues with JDK 1.7.
  • The IDEA_JDK environment variable can be used to override the selected JDK, you may need to run the product from the terminal in order for it to see environment variables (Mac OS restriction): open - a / Applications / .app / .
  • A real version of the JDK appears in the About dialog.
+5
source

Source: https://habr.com/ru/post/1492270/


All Articles