web-dev-qa-db-ja.com

Eclipse実行可能ランチャーは、そのコンパニオン共有ライブラリを見つけることができませんでした

14.04 LTSから16.04 LTSにアップグレードしましたが、私の垂直バーのランチャーからEclipseが起動しません。このエラーを発生させます:Eclipse実行可能ランチャーは、そのコンパニオン共有ライブラリを見つけることができませんでした。 enter image description here

再インストールしても問題は解決しません。

これを参照していました thread しかし、ランチャー(ランチャーの正しいバージョン)を取得してこの問題を修正する簡単な方法はないようです。

さらに、私がこれに従うと link また、コマンドラインVs ICONからこれを行うと、同じランチャーがEclipseを起動できるのはなぜですか?

Oracle JDK8を使用しており、インストーラーを使用してJava EE DevelopersのEclipseをインストールしています。

これが私のEclipseインストールディレクトリの様子です

root@ashu-700-430qe:/opt/Eclipse/jee-mars/Eclipse# ls -lrt
total 236
-rwxr-xr-x  1 root root 140566 Feb 12 16:55 icon.xpm
-rwxr-xr-x  1 root root  79058 Feb 12 16:55 Eclipse
drwxr-xr-x  2 root root   4096 May 29 11:44 readme
drwxr-xr-x  2 root root   4096 May 29 11:44 dropins
-rw-r--r--  1 root root    798 May 29 11:44 Eclipse.ini
drwxr-xr-x 11 root root   4096 May 29 12:37 configuration

これは、ランチャーにとってEclipse.iniがどのように見えるかです。

-startup
../../../../root/.p2/pool/plugins/org.Eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
../../../../root/.p2/pool/plugins/org.Eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417
-product
org.Eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.Eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-install
/opt/Eclipse/jee-mars/Eclipse
-vm
/usr/lib/jvm/Java-8-Oracle/jre/bin
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.Eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.Eclipse.org/c/oomph/org.Eclipse.oomph.git/plain/setups/

これがEclipse.desktopの外観です

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/Eclipse/jee-mars/Eclipse/eclipse
Terminal=false
Icon=/opt/Eclipse/jee-mars/Eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
X-Desktop-File-Install-Version=0.22

助けてください。

2
Ashu

これは権限の問題です。 Sudo権限なしでパッケージを再インストールするか、/root/.p2の権限を次のように変更できます。

Sudo chmod 775 -R /root/

後者をやりました。

5
splucena

また、CentOSでも2019年に同じ問題が発生しました。上記のsplucenaが述べたように、p2フォルダーのアクセス許可を抽出されたファイルの下で775に変更し、インストールスクリプトを実行するとうまくいき、Eclipseを実行できましたすべてのユーザー向け。

Eclipse.desktopファイルについては、以下のエントリは問題なく機能し、アプリケーションは「プログラミング」カテゴリに分類されました。はい、Category = Developmentはプログラミングに終わり、Category = Programmingはその他に終わります:)

[Desktop Entry]
Type=Application
Comment=Eclipse is an IDE for C, C++ and Java development
Name=Eclipse 2019-03
Exec=/usr/local/Eclipse/eclipse
Icon=/usr/local/Eclipse/icon.xpm
Categories=Development;
0
arfneto