Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个不同的 Eclipse 插件项目,我想在 proj2 中从 proj1 调用类,我应该执行哪些步骤?
我试图通过在项目属性上右键单击选项卡并在选项卡项目中将项目 proj1 添加到 project2 来做到这一点,但没有成功。它不知道吗?
如果您正在使用插件项目,则它们只能根据其插件清单文件依赖其他插件和 .jar 文件。在 Plug-In Manifest Editor 中打开 proj2 的 MANIFEST.MF 文件,然后从 Dependency 选项卡中将 proj1 添加为必需的插件。
有时 Eclipse 会感到困惑,或者自己不使用您更改的配置。通常它有助于强制 eclipse 重新构建所有项目。
主菜单:“项目”比单击“清理...”选择“清理所有项目”并按“确定”