安装eclipse时 提示The Eclipse executable launcher was unable to locate its companion (可执行程序无法找到其同伴共享库)

操作系统:win7

The Eclipse executable launcher was unableto locate its companion shared library

译:Eclipse出现可执行程序无法找到其同伴共享库

一、打开eclipse目录下的配置文件eclipse.ini。

   二、将--launcher.library和-startup下面的路径都改为当前的正确路径。

如我的eclipse的存放路径由D:\ProgramFiles\改为D:\,则将路径里eclipse前的“Program Files\”去掉即可。

如果要在eclipse打开时显示工作路径对话框,则有两种解决方法:

方法一、关闭Eclipse并打开eclipse的安装目录,依次打开以下目录,configuration\.settings文件夹下有一个文件org.eclipse.ui.ide.prefs,用记事本打开,将下列红色字符改为true即可:SHOW_WORKSPACE_SELECTION_DIALOG=true

方法二、设置方法如下:依次打开Window -> Preferences-> General -> Startup and Shutdown 。然后勾选Confirmexit when closing last window复选框即可。或者点击Restore Defaults按钮。

另外我在Stack Overflow Community上查到导致该问题的原因是非常过的,其中包括Windows系统自身问题(这个可能需要系统修复)。还有就是压缩软件问题,比如外国的有个名字为“7-zip”的压缩工具解压eclipse压缩包极可能会导致该问题,建议就是使用WinRAR压缩工具。至于为什么,应该是某些压缩软件会导致解压后的文件系统发生变化。

(using cygwin and gunzip or unzip to set up youreclipse environment the permissions on the .exe and .dll files will beincorrect and the JVM will not run them properly.

使用cygwin和gunzip或解压缩设置您的eclipse环境.exe和.dll文件的权限将不正确,JVM将不会运行它们正确)

我的解决方案:先确保JDK的环境变量配置成功,然后重新下载另一个版本的eclipse,使用WinRAR解压,运行成功。
--------------------- 
作者:Oraclesand 
原文:https://blog.csdn.net/oraclesand/article/details/54341466 
 

你可能感兴趣的:(Java)