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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7070968/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:25:56  来源:igfitidea点击:

Eclipse executable launcher error: Unable to locate companion shared library

eclipseeclipse-indigo

提问by Cbas

I had Eclipse Indigo installed on my computer with the Android plugin and it was working perfectly for about two weeks. Today, I updated java and quicktime then restarted my computer. When it booted back up, eclipse had completely vanished - all the program files have completely disappeared. When I try to reinstall it, I get an error message that says

我在我的计算机上安装了带有 Android 插件的 Eclipse Indigo,它完美运行了大约两周。今天,我更新了 java 和 quicktime,然后重新启动了我的电脑。当它重新启动时,eclipse 完全消失了——所有的程序文件都完全消失了。当我尝试重新安装它时,我收到一条错误消息,指出

The Eclipse executable launcher was unable to locate its companion shared library.

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

What happened and how can I fix it?

发生了什么,我该如何解决?

采纳答案by Ladlestein

That sounds pretty bad and weird. But reinstalling isn't that hard - download, unzip, change the default memory allocation, run Eclipse, install necessary plugins and features.

这听起来很糟糕很奇怪。但重新安装并不难——下载、解压缩、更改默认内存分配、运行 Eclipse、安装必要的插件和功能。

And almost all of the important preferences are in your workspace. The only important one I can think of outside of the workspace is the aforementioned memory allocation, which you can set on the command line or in the ECLIPSE.INI file.

几乎所有重要的首选项都在您的工作区中。在工作区之外我能想到的唯一重要的是前面提到的内存分配,您可以在命令行或 ECLIPSE.INI 文件中设置它。

回答by blue-sky

I've just encountered the same issue. The problem for me was Windows 7 default unzipper program. It has a problem when it encounters files that have a deep file structure. I read about this issue some time ago but can't recall the article. Fix for me is to unzip the Eclipse download using WinZip (or some other tool which does'nt have this issue).

我刚刚遇到了同样的问题。我的问题是 Windows 7 默认解压缩程序。当它遇到文件结构很深的文件时就会出现问题。我前段时间读过这个问题,但不记得这篇文章了。对我来说修复是使用 WinZip(或其他没有此问题的工具)解压缩 Eclipse 下载。

回答by baranowb

Check eclipse.ini, there are two entries like:

检查eclipse.ini,有两个条目,如:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807

For some twisted reason jars have version in their name - so if you upgrade/have two different version of eclipse( while eclipse.ini is either linked or provided as system wide conf file for eclipse ) it will cause above error.

由于某些扭曲的原因,jar 的名称中有 version - 因此,如果您升级/拥有两个不同版本的 eclipse(而 eclipse.ini 已链接或作为 eclipse 的系统范围 conf 文件提供),它将导致上述错误。

回答by alsq

During unzip in a cygwin directory on Win7, .exeand .dllneed to be given executable mode. This is the solution from a mintty (or other $TERM) terminal run with cygwin on windows 7:

在 Win7 上的 cygwin 目录中解压时,.exe.dll需要被赋予可执行模式。这是$TERM在 Windows 7 上使用 cygwin 运行的 mintty(或其他)终端的解决方案:

me@mymachine ~/eclipse
$ find . -name "*.dll" -exec chmod +x {} \;

tried with Juno (eclipse 4.2) freshly unzipped, cygwin 1.7.something

尝试使用刚刚解压的 Juno(eclipse 4.2),cygwin 1.7.something

回答by Mark

I have seen this in MacOS Sierra. Sometimes unzipping the app leaves extended attributes that seem to prevent the startup. The following command line removes extended attributes and seems to fix the problem:

我在 MacOS Sierra 中看到过这个。有时解压缩应用程序会留下似乎阻止启动的扩展属性。以下命令行删除了扩展属性,似乎解决了问题:

xattr -c Eclipse.app

xattr -c Eclipse.app

It also works for other applications that are built on the eclipse framework.

它也适用于构建在 eclipse 框架上的其他应用程序。

回答by Mark Leighton Fisher

Another problem (that I ran into) is that Cygwin's unzip utility (UnZip 6.00 of 20 April 2009, by Cygwin. Original by Info-ZIP.) does not always correctly unzip everything needed for Eclipse to actually run.

另一个问题(我遇到的)是 Cygwin 的解压缩实用程序(2009 年 4 月 20 日的 UnZip 6.00,由 Cygwin。Info-ZIP 原创。)并不总是正确解压缩 Eclipse 实际运行所需的所有内容。

Using 7ZIPv9.20 got Eclipse Indigo (3.7.2) up and running for me on Win7 64bit with 32bit JVM and 32bit Eclipse.

使用7ZIPv9.20 让 Eclipse Indigo (3.7.2) 在 Win7 64 位、32 位 JVM 和 32 位 Eclipse 上为我启动和运行。

(First time I've ever had Cygwin's unzip fail on me...)

(我第一次让 Cygwin 的解压失败……)

回答by SkyLeach

I just ran into this myself and found that, indeed, as one post above stated: using cygwin and gunzip or unzip to set up your eclipse environment the permissions on the .exe and .dll files will be incorrect and the JVM will not run them properly.

我自己刚刚遇到了这个问题,发现确实如上面的一篇文章所述:使用 cygwin 和 gunzip 或 unzip 来设置您的 eclipse 环境,.exe 和 .dll 文件的权限将不正确,JVM 将不会运行它们适当地。

Quick solution:

快速解决方案:


#switch to the eclipse target folder
cd /cygdrive/c/Program\ Files\ \(x86\) #or wherever you put eclipse
find ./ -regextype posix-extended -mindepth 1 -type f -regex ".*\.exe|.*\.dll" |\
xargs chmod -v 750

回答by Does

I meet this issue after copy a eclipse installation to another pc.I find the eclipse installation auto created the .p2 directory on my c:\Users\xx.p2, and --launcher.library refer to here.So it doesn't exist on my another pc.
My resolution is to reinstall eclipse:
a)Double click eclipse-inst-win64.exe
b)Click to change to advanced mode.
c)Uncheck the Bundle Pool
d)Finish your installation and copy again.
Everything will work well.

将 eclipse 安装复制到另一台电脑后,我遇到了这个问题。我发现 eclipse 安装自动在我的 c:\Users\xx.p2 上创建了 .p2 目录,而 --launcher.library 指的是这里。所以它没有存在于我的另一台电脑上。
我的解决方法是重新安装 eclipse:
a) 双击 eclipse-inst-win64.exe
b) 单击更改为高级模式。
c) 取消选中捆绑池
d) 完成安装并再次复制。
一切都会好起来的。

回答by Pedro

My experience and advice: Install Eclipse Juno on C: drive.

我的经验和建议:在 C: 驱动器上安装 Eclipse Juno。

After download the zip, put it on C:, click the right mouse button -> extract here. Then a folder called eclipse will be created in C: drive.

下载zip后,放到C:,点击鼠标右键->这里解压。然后将在 C: 驱动器中创建一个名为 eclipse 的文件夹。

Then go to Eclipse executable, run it, and all will be ok.

然后转到 Eclipse 可执行文件,运行它,一切都会好起来的。

回答by BrownsFan

Problem happened when I unzipped using Cygwin. Used the Windows XP standard unzip program and it worked.

当我使用 Cygwin 解压缩时出现问题。使用 Windows XP 标准解压缩程序,它工作正常。