#author("2019-09-22T14:28:59+09:00","default:tanak0to","tanak0to") #author("2019-09-22T14:29:29+09:00","default:tanak0to","tanak0to") RIGHT:[Mac 関係覚え書き] *Eclipse Oxygen(4.7.2)のインストール [#p1d2a388] Eclipse のサイト https://www.eclipse.org/downloads/ からインストーラ eclipse-inst-mac64.tar.gz をダウンロードし,tar を展開. 展開したインストーラを走らせる. 必要であれば, メニュー「Eclipse-inst」から「環境設定」を開き, プロキシを設定する. インストーラから必要なものをインストールする. (簡易インストールモードでよい) インストール時に尋ねられるインストールディレクトリは, /Applications とし, 2つめ以降のモジュールをインストール時は上書きでよい. インストール後, インストールユーザのホームディレクトリにある .p2 フォルダを ライブラリ配下に移動する. ex) $ sudo mkdir /Library/Application\ Support/Eclipse $ sudo mv ~/.p2 /Library/Application\ Support/Eclipse/p2 さらに, /Library/Application\ Support/Eclipse/p2/pool/pools.info /Library/Application\ Support/Eclipse/p2/pool/profiles.info /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini /Applications/Eclipse.app/Contents/Eclipse/configuration/config.ini /Applications/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info の 5つのファイルについて, /Users/インストールユーザ/.p2 となっているところを全て /Library/Application Support/Eclipse/p2 とする. ("Application Support" の n と S の間のスペースはスペースのままでよい. \ などのエスケープ文字は必要ない) インストーラで Adovanced mode にして Bundle Pool の場所を 明示的に指定してもいい.(未確認) ---- *Eclipse Standard 4.4 [#of6dde2e] JDK 7 が必要なので先にインストールする. ダウンロードした tarbawl を展開 展開されてできた「eclipse」フォルダを「アプリケーション」フォルダへ ドラッグ. 「Eclipse」を起動. /Applications/ecripse/Eclipse.app/Contentes/MacOS/eclipse に other の読み込み,実行権がないので,修正. sudo chmod 755 /Applications/ecripse/Eclipse.app/Contentes/MacOS/eclipse これだけではだめで, # cd /Applications/eclipse # chmod -R a+r . # find . -type d | xargs chmod a+rx # chmod 755 /Applications/ecripse/Eclipse.app/Contentes/MacOS/eclipse わざわざこうなっているってことは,管理者権限がないユーザ(...いやインストールしたユーザ以外)は うまく動かないソフトなのかもしれない. *Eclipse 2018.12 [#y3dd9329] **インストール [#e833652f] Webサイトから eclipse-inst-mac64.tar.gz をダウンロードし解凍. インストーラを起動し,Advance mode にして Network Connection を Direct から Manual に変更. -HTTP と HTTPS の Host にプロキシーサーバの IP を入力 簡易インストール -Eclipse IDE for Java Developers -Eclipse IDE for C/C++ Developers インストール先 /Applications **設定 [#r20536bc] -アップデートを禁止にする。 Eclipse.app/Contents/Eclipse/configuration の中身を起動時に書き換えるので,権限を 777 にしないと他のユーザで起動が出来ない. 上記フォルダ以下に全ユーザ書き込み権を与える chmod -R a+w /Applications/Eclipse.app/Contents/Eclipse **日本語化インストール [#e68dd300] -参考: http://techfun.cc/java/mac-eclipse-install.html -参考: http://tech.pjin.jp/blog/2016/08/02/tips_mac_eclipse_neon_ja/ -参考: https://tech.pjin.jp/blog/2018/07/10/tips_mac_eclipse_photon_ja/ http://mergedoc.osdn.jp へアクセス Pleiades プラグイン(pleiades-mac.zip)をダウンロード(All in On ではなく). 展開した pleiades-mac/ 内の setup を起動 -日本語化するアプリケーション: /Application/Eclipse.app -Pleiades が配置するディレクトリ:自動的に入力される -Pleiades の設定が追加されるファイル:自動的に入力される [日本語化する]ボタンクリック > [終了] **adminのワークスペースが残らないように [#t3a526fb] /Applications/Eclipse.app/Contents/Eclipse/configuration/.settings/org.eclipse.ui.ide.prefs RECENT_WORKSPACES= /User/admin////Workspace の右側を削除 加えて SHOW_RECENT_WORKSPACES=true .settings以下は755に変更. これでadminのworkspaceは表示されない cd /Applications/Eclipse.app/Contents/Eclipse/configuration/.settings chmod o-w * **Mac の JDK をアップグレードした場合 [#kef3c585] /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini の jdk へのパスを確認,バージョンが入れ替わっている場合は,書き換えておく.