WebStorm 11 fresh install not starting in Mac OSX

二次信任 提交于 2019-12-07 07:28:24

After searching in GitHub, Jetbrain's forums and so on I saw other people with JVM issues but didn't solve entirely my problem.

For the libjli.dylib issue, I searched for that file in Webstorm.app's contents and saw that it exists in two places, but one of the files (the one that says the file is too short) looks like it's just a redirection to the other file. So I just copied the bigger libjli.dylib and replaced the one being complained about.

To my knowledge, now there's no redirection and the Console is clear from that error. But Webstorm still wasn't starting, now showing the second error, JNI_CreateJavaVM failed.

Turns out something's not quite right in Webstorm and the new versions of Java. I happen to be using the Java 1.8.

What I saw recommended and also worked for me was installing also the Java 1.6 using Brew and telling Webstorm.app to use that version instead. Bear in mind that doing it this way, your system will keep using the updated Java version

So first installing Java 1.6 in the terminal:

~ brew tap caskroom/versions
[...]
~ brew cask install java6
[...]
🍺  java6 staged at '/opt/homebrew-cask/Caskroom/java6/1.6.0_65' (64M)

And now telling Webstorm to use 1.6:

  1. Open up Info.plist file from Webstorm.app contents folder.
  2. Change the line below <key>JVMVersion</key> from <string>1.6+,1.7+</string> to <string>1.6</string>
  3. Save and close

And now it's working!

If Webstorm.app tries to use a Java version you don't have (or can't be found), you'll see something like this:

Again, for me, this was fixed using Brew.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!