import org.eclipse无法解析 [英] The import org.eclipse cannot be resolved
问题描述
import org .eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
我该怎么办?
使用Eclipse IDE for Java Developers,版本:Mars Release(4.5.0)。
解决方案:
源代码是eclipse插件,我需要JAVA EE Eclipse编译并运行它。感谢您的帮助greg-449。
Eclipse IDE for Java Developers不包含Eclipse插件开发环境,运行此项目。
您可以使用帮助>安装新软件进行安装。使用您的Eclipse版本(您的案例中的火星)的主站点,并安装Eclipse插件开发环境。
请注意,您要构建的代码是一个Eclipse插件,只能作为Eclipse的一部分运行。
I cloned a git java project with Eclipse, but I get many errors because I cant resolve these imports:
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
What should I do?
I use Eclipse IDE for Java Developers, Version: Mars Release (4.5.0).
Solution: The source was an eclipse plugin, and I needed JAVA EE Eclipse to compile and run it. Thanks for the help greg-449.
Eclipse IDE for Java Developers does not contain the Eclipse Plugin Development Environment needed to build and run this project.
You can install it using 'Help > Install New Software'. Work with the main site for your version of Eclipse (Mars in your case) and install 'Eclipse Plugin Development Environment'.
Note that the code you are trying to build is an Eclipse plugin and will only run as part of Eclipse.
这篇关于import org.eclipse无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!