使用Eclipse 3.7开发基于Eclipse RCP 3.5的Plugin
是否可以使用Eclipse 3.7 IDE为3.5平台进行开发?或者我必须使用 Eclipse 3.5 IDE 吗?
当我尝试从 Eclipse 3.5 IDE 切换到 3.7 时,我在项目上遇到错误,以前没问题: 所需库的存档:项目“projectname”中的“C:/.../.metadata/.plugins/org.eclipse.pde.core/.external_libraries/xyz/os/win32/x86”无法读取或不是有效的 ZIP 文件 项目名称
我需要做什么才能将 3.5 IDE 更换为当前的 IDE,但仍为 3.5 平台进行开发?
我希望我的解释确实有意义并且可以理解:)
附加信息: - 我以前从未使用过 RCP,现在我必须使用它 - 无法升级目标平台(3.5) - 我搜索了网络和 stackoverflow,但没有找到使用 3.7 并为目标平台 3.5 进行开发的答案(也许其他人没有这些问题或者我使用了错误的查询)
干杯
凯
is it possible to use Eclipse 3.7 IDE for developing for the 3.5 platform? Or must I use Eclipse 3.5 IDE?
When I try to switch from Eclipse 3.5 IDE to 3.7 I get errors on projects, which were ok before:
Archive for required library: 'C:/.../.metadata/.plugins/org.eclipse.pde.core/.external_libraries/xyz/os/win32/x86' in project 'projectname' cannot be read or is not a valid ZIP file projectname
What do I have to do to exchange the 3.5 IDE with a current one, but still develop for the 3.5 platform?
I hope my explanation did make sense and was understandable :)
Additional Info:
- I never used the RCP before, now I must use it
- It's no option to upgrade the target platform (3.5)
- I searched the net and stackoverflow, but found no answers for using 3.7 and develop for target platform 3.5 (maybe nobody else has these problems or I used the wrong queries)
Cheers
Kai
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用菜单
窗口>偏好:
插件开发>目标平台
在这里您可以将 eclipse 3.5 添加为目标平台,然后将其设置为活动状态。
但我认为这并不能解决你提到的错误。我认为这些错误是因为你使用的是旧的工作区文件夹,并且有一些与 eclipse3.7 不兼容的东西。因此,也许您可以尝试切换到新的工作区,并在那里导入您的项目。
Use the menu
Window > Preferences:
Plug-in development > target platform
Here you can add your eclipse 3.5 as a target platform, and then set it active.
But I don't think this will solve the errors you mentioned. I think those errors are because you are using the old workspace folder, and there is something not compatible with eclipse3.7. So maybe you can try to switch to a new workspace, and import your projects there.
我刚刚解决了我的问题:-)
在我的例子中,有一个插件 jar,其中包含 java 源代码:
看起来 eclipse 将 jar 放在插件 jar 中的以下目录中:
对于我的插件,它尝试将 <此目录中的 code>src 文件夹 - 不知何故失败了。
删除 jar 内的 src 文件夹后,错误消失了。
RCP == 痛苦的一袋:-)
I just resolved my problem :-)
In my case, there was a plugin jar, that contained the java sources:
It seems like eclipse is putting jars inside of plugin jars in the following directory:
For my plugin, it tried to put the
src
folder in this directory - which somehow failed.After deleting the
src
folder inside the jar, the errors were gone.RCP == bag of pain :-)