RubyMine fails to start on Yosemite

大兔子大兔子 提交于 2019-12-04 18:56:50

问题


RubyMine won't start under Yosemite, no loading screen, no error message.

This seems to be caused by the default JVM that comes with Yosemite

EDIT This also seems to affect WebStorm


回答1:


This solution is controversial - please read all of it before applying changes!

Open this file

Check the version of Java, most likely 1.8, by using java -version, you should see something like:

java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

Open and edit

/Applications/RubyMine.app/Contents/Info.plist

Or for WebStorm

/Applications/WebStorm.app/Contents/Info.plist

Update the following key

<key>JVMVersion</key>
<string>1.7*</string>

to

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

RubyMine should now be good to go


Feedback on this solution

JetBrains do not recommend this solution as it will break autoupdating with patches. That tradeoff was acceptable for me as I just wanted to get going quickly and avoid installing Java 1.6.

The full discussion is here https://intellij-support.jetbrains.com/entries/27854363-IDE-doesn-t-start-after-updating-to-Mac-OS-Yosemite-or-Mavericks




回答2:


You shouldn't edit your plist file since it will prevent Rubymine from autoupdating. This is direct from their support pages:

Modifying Info.plist will break the application digital signature and prevent the patch updates. We do not recommend modifying Info.plist file to run under JDK 1.7 or 1.8.

Page located here:

https://intellij-support.jetbrains.com/entries/27854363-IDE-doesn-t-start-after-updating-to-Mac-OS-Yosemite-or-Mavericks

The correct answer is to install Apple JDK 1.6




回答3:


JDK 1.6 is required to run and may be missing on your system. Please install Apple JDK 1.6. There should be a window with the suggestion to install Java when you start the product for the first time, but it could be hidden by other application windows.

Apple JDK 1.6 download: http://support.apple.com/kb/DL1572.

I have tried to down load the JDK 1.6, it works in my Mac.




回答4:


Just install java for OS X, and it'll solve the issue.

Up till OS X El Capitan(10.11), this link solves. Or you can just google "java for osx", most probably first link will show you the right answer.



来源:https://stackoverflow.com/questions/26422750/rubymine-fails-to-start-on-yosemite

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