Eclipse RCP 应用程序 (Indigo) 上的 Java 退出代码 13
我这里似乎有 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:
我确信这与 64 位系统上的 32 位软件的组合有关(如果你能证明我错了,那就更好了!)。
你们中有人知道我如何正确设置它并且仍然能够为 win32 构建吗?
再次非常感谢!
更新
我已经安装了64位Eclipse 3.7.1和JRE 1.6_30 + JDK 1.6_30,都是64位版本。但是,错误仍然存在!我认为这可能是一个错误,或者我做错了什么。
首先,这是错误消息:
对于此构建,我没有使用 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:
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:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我建议您将所有内容安装为 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.
Eclipse 网站告诉我
其中一些错误是由于未安装正确的 java 版本引起的 (无法运行 Eclipse;退出代码=13),而其他的似乎是由 eclipse 目录中的“#”字符引起的(http://www.eclipsezone.com/eclipse/forums/t105198.html) 。
也许这些原因之一会导致崩溃。
The Eclipse website tells me that
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.
看来这与 32 位与 64 位无关,而一切都与我缺乏经验有关。
产品配置
根本没有正确设置。我通过创建一个新插件绕过了这一点,该新插件使用当您通过 Eclipse 本身中的“启动 Eclipse 应用程序”链接启动应用程序时自动创建的插件运行配置。对于遇到类似问题的人,这里是解决方法。
产品配置
,然后在向导中选择“使用启动配置:”。从下拉列表中,选择您在步骤 2 中记住的运行配置。产品定义
部分中) 。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.
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.Product Definition
section) as needed.全部安装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
老问题但似乎值得回答。我刚刚在使用基于功能的 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.
尝试将项目移动到驱动器的根目录
try moving the project to the root of the drive
已解决: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