dryabov / phpregexp

Support of regular expressions parsing in PhpStorm
MIT License
4 stars 2 forks source link

Had a "Unsupported major.minor version 51.0" error at PHPStorm 9 start (OS X 10) #6

Closed ronanguilloux closed 9 years ago

ronanguilloux commented 9 years ago

Using brand new stable PHPStorm 9 release (today's build)

$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
dryabov commented 9 years ago

Hmm, "version 51.0" is Java 7, so I guess that PhpStorm is running using older Java version, but I don't know how to check it.

dryabov commented 9 years ago

I've found a comment about set Java version in IDEA, maybe there is a similar issue in PhpStorm: https://github.com/wakatime/jetbrains-wakatime/issues/25#issuecomment-79097268

ronanguilloux commented 9 years ago

Good point!

just pro memoria:

[edit] /Applications/PhpStorm.app/Contents/Info.plist

Search for they key/value pair

<key>JVMVersion</key>
<string>1.6*,1.7+</string>

And change it to

<key>JVMVersion</key>
<string>1.8*</string>

This will make PhpStorm IDEA start using JRE 1.8. Source: Selecting the JDK version the IDE will run under