Eclipse 可执行启动器无法找到其配套共享库

Ash*_*shu 3 icons eclipse java launcher

从 14.04 LTS 升级到 16.04 LTS,但我的 Eclipse 没有从侧面垂直栏上的启动器启动。给我这个错误:Eclipse 可执行启动器无法找到它的配套共享库。 在此处输入图片说明

重新安装并不能解决问题。

指的是这个线程,但似乎没有什么简单的方法可以让启动器(启动器的正确版本)解决这个问题。

此外,如果我遵循此链接,为什么当我们从命令行 Vs ICON 执行此操作时,同一个启动器能够调用 eclipse?

我有 Oracle JDK8 并使用安装程序为 Java EE 开发人员安装 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
Run Code Online (Sandbox Code Playgroud)

这是我的 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/
Run Code Online (Sandbox Code Playgroud)

这就是 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
Run Code Online (Sandbox Code Playgroud)

请帮忙。

小智 9

这是一个权限问题。您可以重新安装软件包,而不会sudo权利或更改的权限/root/.p2

sudo chmod 775 -R /root/
Run Code Online (Sandbox Code Playgroud)

我做了后者。