Eclipse 可执行启动器无法找到其配套的启动器 jar 窗口
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10876538/
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
The Eclipse executable launcher was unable to locate its companion launcher jar windows
提问by Ajay
I am facing a small issue and need help on it.
我面临一个小问题,需要帮助。
I had to re-install Windows on my laptop. After that I installed Java, extracted Eclipse and set the environment variables, namely Path to the Java bin directory and also created a JAVA_HOME variable and set it. Every time I try opening eclipse.exe I get the following error.
我不得不在我的笔记本电脑上重新安装 Windows。之后我安装了Java,解压了Eclipse并设置了环境变量,即Java bin目录的路径,还创建了一个JAVA_HOME变量并设置了它。每次尝试打开 eclipse.exe 时,都会出现以下错误。
The eclipse executable launcher was unable to locate its companion launcher jar.
eclipse 可执行启动器无法找到其配套的启动器 jar。
What am I missing here?
我在这里缺少什么?
回答by Bananeweizen
The most common reason for this message seems to be unzipping the eclipse zip file wrongly (for instance unzipping without recreating the directory structure). Therefore please unzip the zipped Eclipse again with a good unzip tool (like 7-zip) and make sure that the necessary sub directories are created during the extraction.
此消息的最常见原因似乎是错误地解压缩了 eclipse zip 文件(例如,在未重新创建目录结构的情况下解压缩)。因此,请使用良好的解压缩工具(如 7-zip)再次解压缩已压缩的 Eclipse,并确保在解压缩过程中创建了必要的子目录。
Also make sure that the path to the unzipped Eclipse does not get very long. I've seen cases where Eclipse was unzipped into a deeply nested directory structure (to put it at some place into an SVN repository) and that led to the same error message.
还要确保解压后的 Eclipse 的路径不会很长。我已经看到 Eclipse 被解压缩到一个深度嵌套的目录结构中(将它放在某个地方到一个 SVN 存储库中)并导致相同的错误消息的情况。
If that still doesn't work, you may try launching eclipse.exe with administrative rights. That should not really be necessary, but maybe your access rights are somehow broken after the re-installation of Windows.
如果这仍然不起作用,您可以尝试使用管理权限启动 eclipse.exe。这不应该真的是必要的,但也许您的访问权限在重新安装 Windows 后以某种方式被破坏了。
回答by guest
Edit the eclipse.ini
file and remove these two lines:
编辑eclipse.ini
文件并删除这两行:
-startup
plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
回答by Sean
Same issue on my Mac with a pre-packaged RCP client that was unzip only. The other answers pointed me to the eclipse.ini where all the paths looked valid, tried to check the working directory of my Eclipse bundle that doesn't see that easy to do. Seems when Finder starts an application it's working directory is / so that seems to be the issue.
我的 Mac 上有同样的问题,带有仅解压缩的预打包 RCP 客户端。其他答案将我指向所有路径看起来都有效的 eclipse.ini,试图检查我的 Eclipse 包的工作目录,这并不容易。似乎当 Finder 启动一个应用程序时,它的工作目录是 / 所以这似乎是问题所在。
Updated both references in my eclipse.ini to absolute paths and voila!
将我的 eclipse.ini 中的两个引用更新为绝对路径,瞧!
-startup
/Applications/RCPClient/client/eclipse/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
/Applications/RCPClient/eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.2.R36x_v20101019_1345
...
回答by sabbir
Solution for Mac
Mac 解决方案
Reason:Eclipse is copied from one location to another.
原因:Eclipse 从一个位置复制到另一个位置。
Solution:Need to update path(s) in eclipse.ini
. My eclipse.ini
was found in /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini
.
解决方案:需要更新eclipse.ini
. 我的eclipse.ini
被发现在/Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini
.
We need to update the path for plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
.
我们需要更新plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
.
回答by cyril
You have to copy in Users/user/.p2 and .eclipse from old location when it come from and older location. For example i made a copy from computer to another, and i had this error, then i copied those folders and it worked !
当它来自旧位置时,您必须从旧位置复制 Users/user/.p2 和 .eclipse。例如,我从计算机复制到另一台计算机,但出现此错误,然后我复制了这些文件夹,并且成功了!
回答by julealgon
I just had this problem and it seems to be related to permissions somehow. I initially unzipped it to my Program Files folder, in Windows 8. After unzipping it directly to C: the program started normally.
我刚刚遇到了这个问题,它似乎与权限有关。我最初将它解压缩到我的 Program Files 文件夹,在 Windows 8 中。将它直接解压缩到 C 后:程序正常启动。
回答by Prashant Kumar
Please Check "eclipse.ini" file:
请检查“eclipse.ini”文件:
Normally there should not be any hard code path like:
(For example)
P:\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140603
通常不应有任何硬代码路径,例如:(
例如)
P:\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140603
If you see anything like this please follow these steps:
1. Make Backup of the file
2. Then open the file original file in Editor
3. change the static path to :-- plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140603
(and save file and open your eclipse it will work amazing)
如果您看到类似的内容,请按照以下步骤操作:
1. 备份文件
2. 然后在编辑器中打开文件原始文件
3. 将静态路径更改为:-- plugins/org.eclipse.equinox.launcher.win32。 win32.x86_1.1.200.v20140603(并保存文件并打开你的eclipse它会工作得很棒)
回答by Arsalan
I've the same problem, and the below solution exactly work for me....!
我有同样的问题,下面的解决方案完全适合我......!
Edit eclipse.ini
file and remove these two lines:
编辑eclipse.ini
文件并删除这两行:
--launcher.library
.%%..\eclipse\plugins\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
--launcher.library
.%%..\eclipse\plugins\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
Make sure make a separate copy of this file before any changing...:)
确保在进行任何更改之前制作此文件的单独副本...:)
回答by teardrop
You might want to check that library
您可能想检查该库
**org.eclipse.equinox.launcher_(version).dist.jar**
and
**plugins/org.eclipse.equinox.launcher.gtk.linux.x86_(version).dist**
exists on your system.
Make sure that the version of libraries mentioned in eclipse.ini and the version that exists on your system is same. Usually after upgrade this mismatch occurs and eclipse fails to locate the required jar. Please take a look at this blog post here
确保 eclipse.ini 中提到的库版本与您系统上存在的版本相同。通常在升级后会发生这种不匹配并且 eclipse 无法找到所需的 jar。请在此处查看此博客文章
回答by splatter_fadli
open eclipse.ini and replace with this ~
打开eclipse.ini,替换成这个~
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v21.0.0-531062
this work for me, good luck ~
这对我有用,祝你好运~