import org.eclipse无法解析 [英] The import org.eclipse cannot be resolved

查看:692
本文介绍了import org.eclipse无法解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Eclipse克隆了一个git java项目,但是我收到很多错误,因为我无法解决这些导入:

  import org .eclipse.ui.plugin.AbstractUIPlugin; 
import org.osgi.framework.BundleContext;

我该怎么办?



使用Eclipse IDE for Java Developers,版本:Mars Release(4.5.0)。



解决方案:
源代码是ecl​​ipse插件,我需要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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆