CentOS5にEclipseのインストール!

IDE入れてなかったので、Strutsインストールの前にEclipseをインストールしましょう。
IDEなしはきついですからね!
サクッと終わらせましょうかね。


Eclipse Downloads | The Eclipse Foundationから"Eclipse IDE for Java EE Developers"をダウンロード!
ダウンロードしてたら、解凍をします。


# tar xzvf eclipse-jee-indigo-SR1-linux-gtk.tar.gz
試しに起動してみたら、いろいろ失敗して最後は"アボートしました"という応答になってしまった・・・
まぁ日本語化したいので、まずは日本語化します。
Eclipse 日本語化 | MergeDoc ProjectからPleiades本体をダウンロードしてきます。(ブラウザ操作)
今回は、1.3.4(最新)をダウンロードしてきました。
さっそくダウンロードしたら、解凍・eclipseフォルダ内へコピー。
最後に、"eclipse.ini"に以下を追尾します。

-javaagent:plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
これで完了!・・・予定だったのだが、下記のように起動すると

# eclipse
Error opening zip file or JAR manifest missing :
plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
Error occurred during initialization of VM
agent library failed to init: instrument
上記のエラーで起動できない・・・
パスの①にちゃんとJARファイルあるのに・・・
CentOS上の"eclipse"アイコンをダブルクリックすると、起動できて日本語になっているんだけどな・・・
で調べてみると、絶対パスで指定すると起動可能できるみたいなので、"eclipse.ini"を編集!

-javaagent:/usr/local/src/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
ここのパスは、eclipseインストールした場所によって変わりますね。
私は、"/usr/local/src/"にファイルを置いたので、上記のようになります。
修正後、起動してみたら無事にコマンドから実行できました!
しかし、Tera Termからeclipseを起動すると、以下のようなエラーが発生!

INFO 03:04:39.162 [main] (PropertySet) load 0.003 秒 - 14 エントリー config.ini
  ・
 [中略]
  ・
a screen for a GtkWindow before using the window
  ・
 [中略]
  ・
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x009c126f, pid=6818, tid=3085969616
#
# JRE version: 7.0-b147
# Java VM: Java HotSpot(TM) Client VM (21.0-b17 mixed mode linux-x86 )
# Problematic frame:
# C [libgtk-x11-2.0.so.0+0xf726f] gtk_icon_set_render_icon+0x55f
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/[ユーザ名]/hs_err_pid6818.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
アボートしました
試しに"hs_err_pid6818.log"見ても、起動時のメモリ状況らしいものがかかれているだけみたいな・・・
よくわからないぞ・・・・
SSHからeclipseを起動しようとwindowがどこかわからなくてダメなんだろうと思っておこ。(すごく勝手な解釈です!)
次は、Struts使ってサンプル動かしてみよ!

参考記事
CentOS5.4にEclipse入れてみた: IT じゃんくぼっくす
centos5.5にeclipseとpleiadesをインストール - カヤの内
eclipse3.4.1インストール 日本語化 centos5
UbuntuへPDTのインストール - kikukawa's diary