====== Fedora Eclipse ======
Fedora Eclipseは、gcj(GNU Compiler for Java)によってネイティブコードにコンパイルされている。つまり、JVM(Java仮想マシン)に依存しない。\\
他のディストリビューションではネイティブ エクリプス(Native Eclipse)と呼ばれている場合もある。
===== Fedora Eclipse 3.6.1(Helios) を pleiades 1.3.3.20101202 で日本語化する(Fedora 14編) =====
ここではeclipseをメモリ上で翻訳する Pleiades プラグインを使用する。\\
* [[http://mergedoc.sourceforge.jp/|Pleiades (Eclipse プラグイン日本語化プラグイン)]] より Pleiades を入手する。
* ここでは、Pleiades 最新版 1.3.3.20101202 をダウンロードした。
==== Fedora Eclipse のファイル、フォルダ構成 ====
**/usr/bin/eclipse**\\
ユーザ起動用スクリプト。(過去にスクリプトからリンクになったりしているので触らないことにする)\\
**/usr/lib64/eclipse**\\
ここに pleiades を入れる。つまり、ここに pleiades.zip を解凍する。\\
# unzip pleiades_1.3.3.20101202.zip -d /usr/lib64/eclipse
Archive: pleiades_1.3.3.20101202.zip
creating: /usr/lib64/eclipse/features/jp.sourceforge.mergedoc.pleiades/
creating: /usr/lib64/eclipse/features/jp.sourceforge.mergedoc.pleiades/META-INF/
creating: /usr/lib64/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/
~省略~
**/usr/share/eclipse**\\
過去にエラーになったため、pleiades はここには入れない。\\
==== 日本語化プラグインのロード設定(eclipse.ini の修正) ====
# gedit /usr/lib64/eclipse/eclipse.ini &
/usr/lib64/eclipse/eclipse.ini **__最終行に pleiades の設定を追加する。__**\\
startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1.R36x_v20100810
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms128m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/
DataTreeNode,forwardDeltaWith
-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/
ParameterizedMethodBinding,
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/
cpp/semantics/CPPTemplates,instantiateTemplate
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/pdom/dom/cpp/
PDOMCPPLinkage,addBinding
-XX:CompileCommand=exclude,org/python/pydev/editor/codecompletion/
revisited/PythonPathHelper,isValidSourceFile
-XX:CompileCommand=exclude,org/python/pydev/ui/filetypes/
FileTypesPreferencesPage,getDottedValidSourceFiles
##### 以下のように設定をフルパスにて追加 #####
-javaagent:/usr/lib64/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
==== 起動確認 ====
一般ユーザにて起動確認。
$ eclipse &
起動時のロゴ(プラグインが無事に動作している)\\
{{:linux:fedora_eclipse_helios_logo_translation.png?250|Fedora Eclipse + pleiades起動ロゴ}}\\
==== プラグインのインストール ====
PDT
http://download.eclipse.org/tools/pdt/updates
PDT(Juno用)
http://download.eclipse.org/tools/pdt/updates/3.1.1/nightly
Aptana3
http://download.aptana.com/studio3/plugin/install
==== 参考文献 ====
[[http://wiki.eclipse.org/PDT/Installation_3.1.x|PDT/Installation 3.1.x - Eclipsepedia]]\\
===== Fedora Eclipse 3.4.1(Ganymede) を pleiades 1.3.0.I で日本語化する(Fedora 10編) =====
ここではeclipseをメモリ上で翻訳する Pleiades プラグインを使用する。\\
* [[http://mergedoc.sourceforge.jp/|Pleiades (Eclipse プラグイン日本語化プラグイン)]] より Pleiades を入手する。
* ここでは、Pleiades 最新版 1.3.0.I20090217 をダウンロードした。
==== Fedora Eclipse のファイル、フォルダ構成 ====
**/usr/bin/eclipse**\\
ユーザ起動用コマンド。以前はシェルスクリプトであったが、/usr/lib64/eclipse/eclipse へのリンクに変更された。\\
**/usr/lib64/eclipse**\\
ここに pleiades を入れる。つまり、ここに pleiades_x.x.x.zip を解凍する。\\
**/usr/share/eclipse**\\
本来はここに pleiades を入れるべきなのだが...。pleiades が 「config.ini が見つかりません。」と言って起動しない。\\
config.ini は /usr/lib64/eclipse/Configuration にある。\\
==== 日本語化プラグインのロード設定(eclipse.ini の修正) ====
/usr/lib64/eclipse/eclipse.ini\\
-showsplash
org.fedoraproject.ide.platform
--launcher.XXMaxPermSize
256m
-framework
plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=128m
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/
DataTreeNode,forwardDeltaWith
-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/
ParameterizedMethodBinding,
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/
cpp/semantics/CPPTemplates,instantiateTemplate
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/pdom/dom/cpp/
PDOMCPPLinkage,addBinding
-XX:CompileCommand=exclude,org/python/pydev/editor/codecompletion/
revisited/PythonPathHelper,isValidSourceFile
-XX:CompileCommand=exclude,org/python/pydev/ui/filetypes/
FileTypesPreferencesPage,getDottedValidSourceFiles
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/
share/eclipse/dropins
##### 以下のように設定をフルパスにて追加 #####
-javaagent:/usr/lib64/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
==== 起動確認 ====
スーパーユーザにて起動確認。
# eclipse &
一般ユーザにて起動確認。
$ eclipse &
起動時のロゴ(プラグインが無事に動作している)\\
{{:linux:fedora_eclipse_logo_translation.png?250|Fedora Eclipse + pleiades起動ロゴ}}\\
CDTが翻訳されて日本語表示されている。\\
{{:linux:fedora_eclipse_cdt_translation.png?700|Fedora Eclipse CDT日本語化}}
===== 以前のバージョンの日本語化(保管用 - 古い方法です) =====
/usr/bin/eclipse
#!/bin/sh
exec /usr/lib64/eclipse/eclipse \
--launcher.library /usr/lib64/eclipse/plugins org.eclipse.equinox.launcher.gtk.linux.
x86_64_1.0.0.v20070606/eclipse_1017a.so \
-startup /usr/share/eclipse/startup.jar \
${1+"$@"}
以下のように修正する
#!/bin/sh
exec /usr/lib64/eclipse/eclipse \
--launcher.library /usr/lib64/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.
x86_64_1.0.0.v20070606/eclipse_1017a.so \
-startup /usr/share/eclipse/startup.jar \
-vmargs \
-javaagent:/usr/share/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar \
${1+"$@"}
/usr/share/eclipseにpleiadesをインストールする。
一旦root権限でeclipseを起動し終了する
$su
$eclipse &
/usr/share/eclipse/configuration/jp.sourceforge.mergedoc.pleiadesにフォルダが出来る
Pleiades が上記フォルダに翻訳キャッシュを書き込むので一般ユーザでも書き込めるように設定する
chmod 666 /usr/share/eclipse/configuration/jp.sourceforge.mergedoc.pleiades/pleiades.log