linux:fedora:fedora_eclipse

Fedora Eclipse

 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

一般ユーザにて起動確認。

$ eclipse &

起動時のロゴ(プラグインが無事に動作している)
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

ここでは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

スーパーユーザにて起動確認。

# eclipse &

一般ユーザにて起動確認。

$ eclipse &

起動時のロゴ(プラグインが無事に動作している)
Fedora Eclipse + pleiades起動ロゴ
CDTが翻訳されて日本語表示されている。
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 \

  1. 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 \

  1. startup /usr/share/eclipse/startup.jar \
  2. vmargs \
  3. 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
  • linux/fedora/fedora_eclipse.txt
  • 最終更新: 2024/02/04 13:36
  • by ともやん