Eclipse RCP 应用程序 (Indigo) 上的 Java 退出代码 13

发布于 2024-12-21 09:55:56 字数 1290 浏览 0 评论 0原文

我这里似乎有 32 位与 64 位的问题。解决起来应该很简单,但我希望你能指出问题来帮助我。我真的希望避免一遍又一遍地重新安装操作系统、Eclipse、几个插件、JDK 和 JRE,以找到可行的解决方案。非常感谢!

我在 64 位 Thinkpad 上构建,运行 64 位 Windows 7。 我已经在 Indigo (3.7.1.) 32 位版本中构建了一个 Eclipse RCP 应用程序。 我这台机器上唯一的“Java”是 1.6.29 32 位 JRE 和 1.6.29 32 位 JDK。我安装了这些(也许是错误的假设),以便能够为 32 位系统构建,而不是在 64 位机器上构建而把事情搞砸。

似乎我错了:当我导出应用程序(作为 Eclipse 产品)时,我得到了可怕的 Java 退出代码=13:

Startup exit code 13

我确信这与 64 位系统上的 32 位软件的组合有关(如果你能证明我错了,那就更好了!)。

你们中有人知道我如何正确设置它并且仍然能够为 win32 构建吗?

再次非常感谢!

更新

我已经安装了64位Eclipse 3.7.1和JRE 1.6_30 + JDK 1.6_30,都是64位版本。但是,错误仍然存​​在!我认为这可能是一个错误,或者我做错了什么。

首先,这是错误消息: 启动 eclipse.exe 时出现错误消息

对于此构建,我没有使用 Delta Pack 而是将 RCP SDK 软件站点添加到目标定义中,并选择“包括所有环境”(或类似选项)。

同样在目标定义中,我将目标环境设置为win32(操作系统和WS)和x86_64(arch)。此外,我将环境设置为使用默认的JRE。

产品配置中,我将执行环境设置为JavaSE 1.6,并设置要打包的JRE。

另外,这是我的 eclipse.ini : -启动 插件/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502

有什么想法吗?

I seem to have a 32bit vs. 64bit problem here. It should be simple to solve, but I'm hoping you can help me by pointing out the problem. I really want to avoid re-installing OSs, Eclipse, several plugins, JDKs and JREs over and over again to find a working solution. Many thanks in advance!

I build on a 64bit Thinkpad, in 64bit Windows 7.
I have built an Eclipse RCP application in Indigo (3.7.1.), 32-bit version.
The only "Javas" I have on this machine is a 1.6.29 32bit JRE, and a 1.6.29 32bit JDK. I've installed these (perhaps in false assumption) to be able to build for 32bit systems, and not screw things up by building on a 64bit machine.

Seems I was wrong: when I export the application (as Eclipse product) I get the dreaded Java exit code=13:

Startup exit code 13

I am sure this is somehow to do with the combination of 32bit software on a 64bit system (if you can prove me wrong, even better!).

Does one of you know how I can set this up properly and still be able to build for win32?

Again, many thanks!

UPDATE

I have installed 64-bit Eclipse 3.7.1, and JRE 1.6_30 + JDK 1.6_30, both 64-bit versions. However, the error remains! I think this might either be a bug, or I'm doing something else wrong.

First of all, here is the error message:
Error message on start of eclipse.exe

For this build, I didn't use the Delta Pack but instead added the RCP SDK Software Site to the target definition, choosing the option "include all environments" (or similar).

Also in the target definition, I set the target environment to win32 (OS and WS) and x86_64 (arch). Furthermore, I set the Environment to use the default JRE.

In the product configuration, I set the Execution Environment to JavaSE 1.6, and set the JRE to be packaged.

Also, here's my eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

执妄 2024-12-28 09:55:56

我建议您将所有内容安装为 64 位或 32 位系统。这是 eclipse 的常见问题,我还没有找到更好的解决方案。

I would recommend you to install everything as 64bit or 32bit system. That's a common problem with eclipse and I haven't found a better solution.

寂寞笑我太脆弱 2024-12-28 09:55:56

Eclipse 网站告诉我

“当它希望启动器显示错误消息时,从 Main 返回退出代码 13。通常,错误消息只是“发生错误,请检查您的日志文件”。在您的配置中查找日志文件目录。”

其中一些错误是由于未安装正确的 java 版本引起的 (无法运行 Eclipse;退出代码=13),而其他的似乎是由 eclipse 目录中的“#”字符引起的(http://www.eclipsezone.com/eclipse/forums/t105198.html) 。

也许这些原因之一会导致崩溃。

The Eclipse website tells me that

"Exit code 13 is returned from Main when it wants the launcher to display an error message. Generally, the error message will just be "an error has occurred, check your log file". Look for a log file in your configuration directory."

Some of these errors have been caused by not having the correct java version installed (Cannot run Eclipse; JVM terminated. Exit code=13), while others seem to have been caused by a "#" character in their eclipse directory (http://www.eclipsezone.com/eclipse/forums/t105198.html).

Maybe one of these reasons causes the crash.

唱一曲作罢 2024-12-28 09:55:56

看来这与 32 位与 64 位无关,而一切都与我缺乏经验有关。 产品配置根本没有正确设置。我通过创建一个新插件绕过了这一点,该新插件使用当您通过 Eclipse 本身中的“启动 Eclipse 应用程序”链接启动应用程序时自动创建的插件运行配置。

对于遇到类似问题的人,这里是解决方法。

  1. 通过“启动 Eclipse 应用程序”启动应用程序
  2. 转至运行 >运行配置...并记住运行配置的名称
  3. 创建新的产品配置,然后在向导中选择“使用启动配置:”。从下拉列表中,选择您在步骤 2 中记住的运行配置。
  4. 为新产品配置提供 ID、版本和名称,并根据需要添加更多信息(例如,在产品定义部分中) 。
  5. 从 Eclipse 中同步启动,看看一切是否正常。
  6. 出口并快乐。

Seems this had nothing to do with 32-bit vs. 64-bit and everything with my lack of experience. The product configuration simply wasn't set up correctly. I've bypassed this by creating a new one which uses the automatically created plugin run config from when you start the application via the "Launch an Eclipse application" link in Eclipse itself.

For those who come across a similar problem, here is how it can be done.

  1. Launch the application via "Launch an Eclipse application"
  2. Go to Run > Run Configurations... and memorize the name of the run configuration
  3. Create a new Product Configuration, and choose "Use a launch configuration:" in the wizard. From the dropdown list, choose the run configuration you have memorized in step 2.
  4. Give the new product configuration an ID, Version and Name, and add further info (e.g., in the Product Definition section) as needed.
  5. Synchronize and Launch from within Eclipse to see if everything works fine.
  6. Export and be happy.
半枫 2024-12-28 09:55:56

全部安装64位。

然后以 32 位运行(模拟)Eclipse

只需:在以下位置插入一个参数:
运行配置...->参数(选项卡)->程序参数:类型 -d32

Install all in 64bit.

Then to run (emulate) your Eclipse in 32bit

Just: insert an argument in:
Run Configurations... -> Arguments (tab) -> Program arguments : Type -d32

坦然微笑 2024-12-28 09:55:56

老问题但似乎值得回答。我刚刚在使用基于功能的 RCP 时遇到了这个问题。事实证明,我在导出 RCP 时关闭了功能项目。当我打开它们并再次导出产品时,一切正常。

Old question but it seems worth answering. I just had this problem with an RCP based on features. It turned out that I was exporting the RCP with the feature projects closed. When I opened them and exported the product again, everything worked fine.

寄与心 2024-12-28 09:55:56

尝试将项目移动到驱动器的根目录

c:\test\eclipse\

try moving the project to the root of the drive

c:\test\eclipse\

生生漫 2024-12-28 09:55:56

已解决:D
1.检查操作系统是32位还是64位..但我认为在我的计算机上这不是问题,因为我在Windows 7 64位上使用32位jdk和32位eclipse。
2.如果你仍然有问题...尝试将 Eclipse 移动到 C:/ 它为我的朋友工作..问题返回错误 13

solved:D
1. check the operating system is it 32 bit or 64 bit.. but i think its not problem on my computer because i am using 32 bit jdk and 32 bit eclipse on my windows 7 64 bit.
2. if u still have problem ... try to move eclipse to C:/ its work for my friends.. with problem returned error 13

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文