Mac OSX中未启动WebStorm 11全新安装 [英] WebStorm 11 fresh install not starting in Mac OSX

查看:42
本文介绍了Mac OSX中未启动WebStorm 11全新安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在El CapitanYosemite中的全新安装中都发生了这种情况。WebStorm 11.0.3。

尝试从任何来源(Finder、Spotlight等)启动WebStorm时它看起来好像什么都没做。没有可见的错误,根本没有错误。

因此,我尝试在打开OSX的控制台实用程序时重新启动它,结果发现:

08/02/16 12:57:29,912 webstorm[99959]: Cannot load JVM bundle: Error Domain=NSCocoaErrorDomain Code=3587 "The bundle "OpenJDK 8" couldn’t be loaded because it is damaged or missing necessary resources." (dlopen_preflight(/Applications/WebStorm.app/Contents/jre/jdk/Contents/MacOS/libjli.dylib): no suitable image found.  Did find:
    /Applications/WebStorm.app/Contents/jre/jdk/Contents/MacOS/libjli.dylib: file too short) UserInfo=0x610000069a40 {NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/WebStorm.app/Contents/jre/jdk/Contents/MacOS/libjli.dylib, NSDebugDescription=dlopen_preflight(/Applications/WebStorm.app/Contents/jre/jdk/Contents/MacOS/libjli.dylib): no suitable image found.  Did find:
    /Applications/WebStorm.app/Contents/jre/jdk/Contents/MacOS/libjli.dylib: file too short, NSBundlePath=/Applications/WebStorm.app/Contents/jre/jdk, NSLocalizedDescription=The bundle "OpenJDK 8" couldn’t be loaded because it is damaged or missing necessary resources.}

在应用下面的解决方案中所述的第一步时,我看到了以下内容:

08/02/16 13:01:01,146 webstorm[99970]: Value of WEBSTORM_JDK: (null)
08/02/16 13:01:01,149 webstorm[99970]: fullFileName is: /Applications/WebStorm.app/Contents/bin/webstorm.vmoptions
08/02/16 13:01:01,149 webstorm[99970]: fullFileName exists: /Applications/WebStorm.app/Contents/bin/webstorm.vmoptions
08/02/16 13:01:01,149 webstorm[99970]: Value of WEBSTORM_VM_OPTIONS is (null)
08/02/16 13:01:01,149 webstorm[99970]: Processing VMOptions file at /Applications/WebStorm.app/Contents/bin/webstorm.vmoptions
08/02/16 13:01:01,149 webstorm[99970]: Done
08/02/16 13:01:01,150 webstorm[99970]: JNI_CreateJavaVM (/Applications/WebStorm.app/Contents/jre/jdk) failed: 4294967295

jvm

在GitHub、JetBrain的论坛等搜索后,我看到了其他有推荐答案问题的人,但没有完全解决我的问题。

对于libjli.dylib问题,我在Webstorm.app的内容中搜索了该文件,发现它存在于两个位置,但其中一个文件(显示文件太短的那个文件)看起来只是到另一个文件的重定向。所以我只是复制了较大的libjli.dylib,并替换了被投诉的那个。

据我所知,现在没有重定向,控制台已从该错误中清除。但WebStorm仍未启动,现在显示第二个错误JNI_CreateJavaVM failed

结果是WebStorm和Java的新版本中有些地方不太对劲。我碰巧使用的是Java 1.8。

我看到的建议也对我有效,那就是使用Brew安装Java 1.6,并告诉Webstorm.app改用该版本。请记住,这样做您的系统将继续使用更新的Java版本

所以先在终端安装Java 1.6:

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

现在告诉WebStorm使用1.6

  1. 从Webstorm.app内容文件夹打开Info.plist文件。
  2. 将下面的<key>JVMVersion</key>行从<string>1.6+,1.7+</string>改为<string>1.6</string>
  3. 保存并关闭

现在它起作用了!

如果Webstorm.app尝试使用您没有(或找不到)的Java版本,您将看到类似以下内容:

同样,对我来说,这是使用Brew修复的。

这篇关于Mac OSX中未启动WebStorm 11全新安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆