Eclipse2023-06をUbuntu22.4にインストールしようとしたらエラー(別方法で解決)
経過
Eclipse2023-06をインストールしようと、以下のサイトからダウンロードした。
eclipse-inst-linux64.tar.gz がダウンロードされるので、
適当なディレクトリに解凍。
eclipse-installerディクトリが作成されるので、その中のeclipse-inst を実行する。
$ ./eclipse-inst
Eclipse IDE for Enterprise Java and Web Developers を選択。
すると、しばらくして、以下のようなエラーが出て、インストールに失敗した。
ERROR: org.eclipse.equinox.p2.engine code=4 An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
いろいろ調べてみたけど、よくわからなかった。
解決
Eclipse Package のページ で、
Eclipse IDE for Enterprise Java and Web Developers
を直接選択する。

右側の Linux x86_64 を選択する。
すると、以下のダウンロードページが開くので、ダウンロードする。
eclipse-jee-2023-06-R-linux-gtk-x86_64.tar.gz
この圧縮ファイルを解凍すると、以下のように展開される。
eclipse
+-- configuration/
+-- dropins/
+-- features/
+-- p2/
+-- plugins/
+-- readme/
+-- artifacts.xml
+-- eclipse
+-- eclipse.ini
+-- icon.xpm
これを以下のようにフォルダを作成して、コピーする。
~/bin/eclipse/jee-2023-06
+-- configuration/
+-- dropins/
+-- features/
+-- p2/
+-- plugins/
+-- readme/
+-- artifacts.xml
+-- eclipse
+-- eclipse.ini
+-- icon.xpm
日本語化
pleiadesをダウンロードしておく。
Linuxのところからダウンロードする。
適当なディレクトリにて解凍。
featuresの中の jp.sourceforge.mergedoc.pleiades を
eclipseディレクトリの中の features の中にコピーする。
pluginsの中の jp.sourceforge.mergedoc.pleiades を
eclipseディレクトリの中の plugins の中にコピーする。
eclipseディレクトリの中の eclipse.ini の末尾に以下を追加する。
-Xverify:none
-javaagent:<ECLIPSE_HOME>/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
<ECLIPSE_HOME>は絶対パスで記述する。
これで、eclipseディレクトリの中の eclipse を起動するとよい。
$ ./eclipse
カテゴリー: Eclipse, memo, Ubuntu
タグ: Eclipse, equinox.p2.engine, インストール, エラー
カウント: 187