Mac OS X 「to open Eclipse, you need a Java SE 6 runtime」

在Mac OS X上,只安裝了Java 7而沒有安裝Java 6時,打開Eclipse等依賴Java的軟件,可能會遇到:
To open 「Eclipse,」 you need a Java SE 6 runtime. Would you like to install one now?
這樣的錯誤提示,通過查找和實驗,這裏給兩個解決方案吧。java

1.修改Java安裝目錄的Info.plist文件:
如,個人系統上是修改:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Info.plist 文件,將這部分web

<key>JVMCapabilities</key>
<array>
   <string>CommandLine</string>
</array>    

改成以下:(主要是添加了4行東東)app

<key>JVMCapabilities</key>
<array>
       <string>JNI</string>
       <string>BundledApp</string>
       <string>WebStart</string>
       <string>Applets</string>
       <string>CommandLine</string>
</array>

修改後,重啓系統,再打開Eclipse這樣的軟件就會正常啓動了。eclipse


2.按照提示那樣,安裝JDK 6吧:
到Apple的官方以下頁面下載JDK安裝:
ide

http://support.apple.com/kb/DL1572?viewlocale=en_USidea

安裝後,默認就有java 6了,啓動Eclipse也不會出問題了。spa

參考資料:code

Ref:http://stackoverflow.com/questions/19563766/eclipse-kepler-for-os-x-mavericks-request-java-se-6server

Ref:http://www.macobserver.com/tmo/article/uninstall-or-disable-java-on-a-macblog

 

3.直接使用IntelliJ IDEA,這個徹底能夠代替Eclipse

The Most Intelligent Java IDE

Excel at enterprise, mobile and web development with Java, Scala and Groovy, with all the latest modern technologies and frameworks available out of the box.

Ref:http://www.jetbrains.com/idea/

Ref:Jetbrains Product Patch Or Keygen

Ref:http://idea.lanyus.com(crack)

相關文章
相關標籤/搜索