您的位置:首页 > 编程语言 > Java开发

Eclipse RCP 导出产品配置

2016-03-21 11:16 537 查看
安装的是Eclipse版本信息:

Eclipse for RCP and RAP Developers :

Version: Mars.2 Release (4.5.2)

Build id: 20160218-0600

遇到的问题是Java exit code 13 on Eclipse RCP application (MARS),跟stackoverflow上这位仁兄的情况一样:

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


解决办法:

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  eclipsercp