Eclipse RCP- org.eclipse.ui.plugin 丢失
我编写了一个 Eclipse RCP 应用程序,该应用程序在 Eclipse 中运行良好,但是将其打包为独立应用程序却很棘手。我已经按照自己的方式解决了一些类路径错误,但现在我遇到了一个新错误。
运行导出向导并启动我的应用程序后,它会抛出 ClassDefError 和 ClassNotFoundException,特别是它正在寻找 org.eclipse.ui.plugin.AbstractUIPlugin。我在我的eclipse SDK副本中没有找到这个,我再次下载了SDK以确定,仍然找不到它。我在网上发现了一个 jar,据说包含该 fiel 以及其他一些 eclipse 包,但是,我得到了这个:
NoSuchMethodError: org.eclipse.ui.plugin.AbstractUIPlugin: method ()V not found
我认为问题更多是我做的实际上缺少了一些错误而不是这个类,但是我已经完成了所有配置,并且我确信所有必需的包和依赖项都包含在内。有什么想法吗?
I've written an Eclipse RCP application that runs fine in Eclipse, however, packaging it to be a standalone application has been tricky. I've worked my way though a few class path errors, but now I'm getting a new one.
After running the export wizard and launching my application, it throws a ClassDefError and ClassNotFoundException, specifically it's looking for org.eclipse.ui.plugin.AbstractUIPlugin. I did not find this in my copy of the eclipse SDK, and I downloaded the SDK again to be sure, and still couldn't find it. I found a jar online that supposedly contained the fiel along with some other eclipse packages, however, I then got this:
NoSuchMethodError: org.eclipse.ui.plugin.AbstractUIPlugin: method ()V not found
I figure the problem is more I did something wrong rather than this class is actually missing, but I've gone though all the configurations and I'm sure all the required packages and dependencies are included. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
下载并安装新版本的adt插件21.0.0。
Download and install the new version of adt plugin 21.0.0.
当您从 Eclipse 运行时,您的应用程序可以运行吗?如果是这样,请尝试打开您的plugin.xml,转到运行时,在窗口的右下角您应该会看到类路径。尝试在那里添加所需的插件。
Does your application works when you run from Eclipse? If so then try to open your plugin.xml, go to Runtime and on the bottom right part of the window you should see Classpath. Try adding the required plugins there.