Java exit code 13 on Eclipse RCP application (Indigo)

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

Java exit code 13 on Eclipse RCP application (Indigo)_第1张图片


解决办法:

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. ”

link: http://stackoverflow.com/questions/8486492/java-exit-code-13-on-eclipse-rcp-application-indigo

你可能感兴趣的:(eclipse,code,RCP,13)