Mac 安裝 Eclipse




一:下載教程

前置條件:jdk以安裝好


第一次使用mac,裝了一下午eclipse,終於搞定,特來分享

下載eclispe前,請閱讀該文檔:

http://wiki.eclipse.org/Eclipse/Installation

此文檔介紹了所有eclipse版本和其所需環境,一定要與選擇與自己java版本對應的eclipse,筆者在此走了很多彎路,浪費了很多時間,在此希望大家注意

摘取片段,供大家參考

Eclipse 4.7 (Oxygen)

Eclipse 4.7 (Oxygen) was released on June 28, 2017. See Oxygen schedule.

Consider using the Installer. Please see 5 Steps to Install Eclipse.

A Java 8 JRE/JDK is required to run all Oxygen packages based on Eclipse 4.7. The reasoning behind requiring Java 8 are discussed here.

Eclipse 4.6 (Neon)

Eclipse 4.6 (Neon) was released on June 22, 2016. See Neon schedule.

Consider using the Installer. Please see 5 Steps to Install Eclipse.

A Java 8 JRE/JDK is required to run all Neon packages based on Eclipse 4.6. The reasoning behind requiring Java 8 are discussed here.

Eclipse 4.5 (Mars)

Eclipse 4.5 (Mars) was released on June 24, 2015.

Consider using the new Installer! Please see 5 Steps to Install Eclipse.

A Java 7 JRE/JDK is required for all Mars package downloads based on Eclipse 4.5. Information concerning tested configurations for Eclipse 4.5 is provided here.

Eclipse 4.4 (Luna)

Eclipse 4.4 (Luna) was released on June 25, 2014.

A Java 7 JRE/JDK is required for most of the Luna package downloads based on Eclipse 4.4. Information concerning tested configurations for Eclipse 4.4 is provided here.

Eclipse 4.3 (Kepler)

Eclipse 4.3 (Kepler) was released in June 2013.

A Java 6 JRE/JDK is recommended for Eclipse 4.3. More information concerning tested configurations for Eclipse 4.3 is provided here.


OK,看完文檔就可以下載了,我用的jdk1.7,因此可以使用對應的4.4(Luna)和 4.5(Mars)版本,下載地址如下,當然大家可以根據自己的需要下載所需版本

Luna:http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/lunar

Mars:http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2


此處下載的是tar.gz文件,要解壓之后才能使用,不太熟悉mac的同學可以找到下載該文件的地方,直接使用如下命令解壓:

tar -zxf eclipse-jee-mars-2-macosx-cocoa-x86_64.tar.gz 

解壓完成后會看到eclipse.app,直接雙擊即可使用


二:安裝教程


1.安裝Eclipse前先確認你的Mac上是否已安裝java運行環境。進入終端,輸入”java -version”,如果返回了java版本號則說明已安裝,否則,請先安裝java運行環境

  

2.訪問eclipse官方首頁http://www.eclipse.org/home/index.php ,點擊右上角“Download”按鈕:


3.解壓安裝包

  cd ~/Download

  tar zxvf eclipse-inst-mac64.tar

  

  雙進 Eclipse Installer 打開,

  或者 命令行輸入:

  open /Applications/Eclipse\ Installer.app/

  

  

  

  

  

  

  

  至此,已經成功安裝了Eclipse。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM