Fedora Eclipseは、gcj(GNU Compiler for Java)によってネイティブコードにコンパイルされている。つまり、JVM(Java仮想マシン)に依存しない。
他のディストリビューションではネイティブ エクリプス(Native Eclipse)と呼ばれている場合もある。
ここではeclipseをメモリ上で翻訳する Pleiades プラグインを使用する。
/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 はここには入れない。
# 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,<init> -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
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
ここではeclipseをメモリ上で翻訳する Pleiades プラグインを使用する。
/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 にある。
/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,<init> -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
/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 \
${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 \
${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