设置插件的目标版本以避免 NoSuchMethodException

发布于 2024-09-13 11:59:37 字数 168 浏览 3 评论 0原文

我在 Eclipse 3.6 中构建一个插件,但我希望它与 Eclipse 3.2 兼容。

我刚刚收到 NoSuchMethodException,因为我使用了一些新的 API。有没有办法强制 Eclipse 检查我是否没有使用太新的方法?

当我创建插件时我选择了 eclipse 3.2。

Im building a plugin in Eclipse 3.6, but I want it to be compatible with Eclipse 3.2.

I just got NoSuchMethodException, because I used some new API. is there any way to force eclipse to check if im not using too new methods?

When I created plugin i chose eclipse 3.2.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

末が日狂欢 2024-09-20 11:59:38

如果我理解正确的话,您可以为 eclipse 3.2 创建一个新的目标平台,并使用它进行开发。在首选项/插件开发/目标平台下,使用旧版 Eclipse 安装添加新平台,然后选择它作为工作区的平台。

If I understand correctly, you can make a new target platform for eclipse 3.2, and use that for development. Under Preferences/Plug-in Development/Target Platform, add a new platform using an older installation of eclipse, and select that as the platform for your workspace.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文