Eclipse打开报错 The Eclipse executable launcher was unable to locate its companion shared library.
经常有小伙伴打开Eclipse时出现如下报错:“The Eclipse executable launcher was unable to locate its companion shared library”
这是由于多次卸载重装Eclipse后的配置错误,也可能是更换eclipse路径,导致配置文件与eclipse更换后的路径不符。
这种错误的解决方法如下:
首先,打开Eclipse安装目录下的配置文件eclipse.ini文件
Eclipse.ini文件内容如下:
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.500.v20170531-1133
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
方法一
将–launcher.library和-startup下面的路径都改为当前的正确路径
方法二
删除-startup及plugins/…这两行数据
按照上述方法即可
如有问题,欢迎在文章下留言~