发布Eclipse RCP之后运行程序遇到如下图exception :"Java was started but returned exit code=13",很多帖子说是32位和64位的问题,实则不然。

解决办法:
“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.
- Launch the application via "Launch an Eclipse application"
- Go to Run > Run Configurations... and memorize the name of the run configuration
-
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. -
Give the new product configuration an ID, Version and Name, and add further info (e.g., in the
Product Definitionsection) as needed. - Synchronize and Launch from within Eclipse to see if everything works fine.
-
Export and be happy. ”
link: http://stackoverflow.com/questions/8486492/java-exit-code-13-on-eclipse-rcp-application-indigo
本文介绍了解决Eclipse RCP应用程序启动时出现的“Javawasstartedbutreturnedexitcode=13”异常的方法。通过正确配置产品设置,并使用自动创建的插件运行配置,可以有效避免该问题。
1万+

被折叠的 条评论
为什么被折叠?



