RCP的exec启动器在启动时无法找到伙伴共享库,但从单击org. eclipse.ox.launcher_1.2.0.v20110502 .jar开始。

时间:2023-01-12 15:59:07

I'm building an Eclipse RCP application against Eclipse 3.7.1 and Java 1.6. I'm also using Tycho to build, and have set up my RCP according to the Tycho tutorial from the EclipseCon 2011, to which I've stuck slavishly, apart from project names.

我正在构建一个Eclipse RCP应用程序,以对抗Eclipse 3.7.1和Java 1.6。我也在使用第谷构建,并根据第谷教程从2011年的EclipseCon中建立了我的RCP,在项目名称的基础上,我一直在盲从。

The application builds fine up until I get to Step 5 (adding a p2 repo, then adding a .product file. Well, it still builds fine, and everything is where it should be, but I cannot start the RCP by clicking on the .exe file from the repository in the workspace.

应用程序构建良好,直到第5步(添加一个p2 repo,然后添加一个.product文件)。好了,它仍然可以构建良好的状态,并且一切都是应该的,但是我不能从工作区中的存储库中单击.exe文件来启动RCP。

All I get is the old dreaded "The [RCP] executable launcher was unable to locate its companion shared library" error popup.

我所得到的是老可怕的“(RCP)可执行启动程序无法找到它的伙伴共享库”错误弹出。

First of all I thought I might have set up the CLASS PATH incorrectly, but when I open a console and type javaw or java -version anywhere, it all works.

首先,我认为我可能不正确地设置了类路径,但是当我在任何地方打开控制台和类型javaw或java -version时,它都能正常工作。

Also, when I go to the pluginsfolder in the p2 repository for the RCP in the workspace, and double-click on org.eclipse.equinox.launcher_1.2.0.v20110502.jar, the RCP starts, albeit without the splash screen.

另外,当我在工作空间中p2存储库中的pluginsfolder文件夹中,双击org. eclipse.height .launcher_1.2.0.v20110502。jar, RCP启动,尽管没有启动屏幕。

This must surely mean my Java set up is correct, and it's not a class path problem?

这肯定意味着我的Java设置是正确的,而且它不是类路径问题?

I'm not sure where this problem might lie (I have a plugin, a feature, a product, a repository, and a parent package with the main pom), so if you let me know your suspicions where the error might come from, I'll be more than happy to post respective XML, build.properties, screenshots and what have you. Unless this is a common error with a common solution.

我不确定这个问题可能在哪里(我有一个插件、一个特性、一个产品、一个存储库,以及一个带有主pom的父包),所以如果您让我知道您对错误可能来自哪里的怀疑,我将非常乐意发布各自的XML,构建。属性,屏幕截图等等。除非这是一个常见的错误和常见的解决方案。

Many thanks in advance!

提前感谢!

Oh yea: Windows 7 (64-bit), JDK and JRE both 64-bit as well, Eclipse EE 3.7.1 (I chose that because it contains the most plugins I'll need later by default).

哦,是的:Windows 7(64位)、JDK和JRE都是64位的,Eclipse EE 3.7.1(我选择了它,因为它包含了我在默认情况下需要的大部分插件)。

UPDATE

I'm attaching my CLASS PATH Settings for reference.

我附加了类路径设置以供参考。

User variables

用户变量

  • CLASS PATH: C:\Program Files\Java\jdk1.6.0_30;.;
  • 类路径:C:\Program Files\Java\ jdk1.6.0_30;;

System variables

系统变量

  • JAVA_HOME: C:\Program Files\Java\jdk1.6.0_30
  • JAVA_HOME:C:\Program Files\Java\ jdk1.6.0_30
  • Path: %JAVA_HOME%\bin;
  • 路径:% JAVA_HOME % \ bin。

UPDATE 2

When I let Tycho create a ZIP file in the p2 repository, and copy that from the repo to another location, unzip it and run the .exe, the application starts without problems. So I guess this query is partially solved, but I'd still be interested to hear why I wouldn't be able to start the application from the repository...

当我让Tycho在p2存储库中创建一个ZIP文件时,将它从repo复制到另一个位置,解压缩它并运行.exe,应用程序开始时不会出现问题。所以我想这个查询部分已经解决了,但是我仍然很想知道为什么我不能从存储库中启动应用程序……

2 个解决方案

#1


2  

Today I came across the same issue. I guess you could find the solution here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=176084

今天我遇到了同样的问题。我想你可以在这里找到解决方案:https://bugs.eclipse.org/bugs/show_bug.cgi?id=176084。

In short, the problem in my case was, that the org.eclipse.equinox.launcher_1.2.0.v20110502.jar must be unpacked in the plugins folder under the folder name: org.eclipse.equinox.launcher_1.2.0.v20110502

简而言之,我的问题是,org. eclipse.org/ .launcher_1.2.0.v20110502。jar必须在文件夹名称下面的plugins文件夹中打开。

... hope that helps!

…希望会有帮助!

#2


1  

In my case the error The [RCP] executable launcher was unable to locate its companion shared library was because my path was too long.

在我的情况下,[RCP]可执行启动程序无法找到它的伙伴共享库,因为我的路径太长了。

#1


2  

Today I came across the same issue. I guess you could find the solution here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=176084

今天我遇到了同样的问题。我想你可以在这里找到解决方案:https://bugs.eclipse.org/bugs/show_bug.cgi?id=176084。

In short, the problem in my case was, that the org.eclipse.equinox.launcher_1.2.0.v20110502.jar must be unpacked in the plugins folder under the folder name: org.eclipse.equinox.launcher_1.2.0.v20110502

简而言之,我的问题是,org. eclipse.org/ .launcher_1.2.0.v20110502。jar必须在文件夹名称下面的plugins文件夹中打开。

... hope that helps!

…希望会有帮助!

#2


1  

In my case the error The [RCP] executable launcher was unable to locate its companion shared library was because my path was too long.

在我的情况下,[RCP]可执行启动程序无法找到它的伙伴共享库,因为我的路径太长了。