简体   繁体   English

Eclipse RCP项目无法引用常规Java项目

[英]Eclipse RCP Project Unable to Reference Regular Java Project

Question

I have three projects that I am working with in Eclipse in the same workspace: one RCP application, and two pure Java projects that it depends on. 我在同一个工作空间中的Eclipse中有三个项目正在使用:一个RCP应用程序,以及两个它依赖的纯Java项目。 The one Java project depends on the other; 一个Java项目依赖于另一个。 this is accomplished in Properties->Java Build Path->Projects. 这是在Properties-> Java Build Path-> Projects中完成的。 However, neither that nor any other of the numerous methods I have tried have worked to make the RCP project depend on the pure Java projects. 但是,使RCP项目依赖于纯Java项目的方法,或者我尝试的众多方法中的任何其他方法,都没有奏效。 The solution I have now is haphazard; 我现在的解决方案是偶然的。 I have added the source of the other two projects to the RCP project as linked source folders. 我已将其他两个项目的源作为链接的源文件夹添加到RCP项目中。 Is there a better solution? 有更好的解决方案吗?

Similar StackOverflow Questions 类似的StackOverflow问题

This question is similar to How to set up project references Eclipse and Java Web Project referencing another Java project , but their answers did not fix my problems. 这个问题类似于如何设置 引用另一个Java项目的 EclipseJava Web Project的参考 ,但是他们的回答并不能解决我的问题。 It is even more similar to Eclipse RCP with project dependency , but the solution offered there is precisely what I do not want to do (convert the plain Java projects to plugin projects). 它甚至更类似于具有项目依赖项的Eclipse RCP ,但是那里提供的解决方案正是我不想要做的(将普通的Java项目转换为插件项目)。

Why do you not want to convert them to plugin projects? 为什么不想将它们转换为插件项目? It's nothing more than some additions in the MANIFEST.MF file. 它不过是MANIFEST.MF文件中的一些附加内容。 (unless you want to manually load classes, then it's more complicated) (除非您想手动加载类,否则会更加复杂)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM