English 中文(简体)
外部建筑可发现进口
原标题:External build can t find import

I m从事一项Eclipse RCP项目,该项目涉及3个 Java项目。

“entergraph

Starting from the bottom, gov.bop.rabid.xxx.ui is the RCP project. The other two Java projects are included into the rabid RCP project.

I ve added these two Java projects as dependencies to my rabid project.

enter image description here

“entergraph

When I build the RCP product inside of Eclipse, everything builds and runs.

When I use the Eclipse product export wizard, I get the following error message in the logs.zip file:

# 1/13/12 9:02:45 AM EST
# Eclipse Compiler for Java(TM) 0.B61, 3.7.0, Copyright IBM Corp 2000, 2010. All rights reserved.
----------
1. ERROR in C:BOPEclipse3.7RaBIdgov.bop.rabid.xxx.uisrcgovop
abidxxxuivideoRabidVideo.java (at line 3)
    import gov.bop.eclipse.logging.EclipseLogging;
           ^^^^^^^^^^^^^^^
The import gov.bop.eclipse cannot be resolved

我知道,它有某种依赖性错误,但我无法发现,在我的RCP项目中,有哪一个地方存在依赖性。

Edited to add:

The first part of the Rabid Products Dependencies list:

enter image description here

The two other workspace plugins are included on the dependencies list.

这里是Rabid产品Eclipse经营组合插图清单的第一部分:

“enterography

回答Tonny Madsen的问题(我赞赏大家的兴趣):

  • gov.bop.eclipse logging is an Eclipse plug-in from an existing JAR Archive.
  • com.aware.photocomponent is an Eclipse plug-in from an existing JAR Archive.

这里是一揽子探索者,名录开放:

“entergraph

与这一工作空间有关的有0个错误和0个警告。

最佳回答

最后,我删除了“gov.bop.eclipse.logging plug-in”项目,并将“gov.bop.eclipse.logging jar加入“gov.bop.rabid.xxx.ui同堂”。

The logging plug-in jar is now a part of the ui plug-in jar. While this "works", if I want to update the logging plug-in jar, I have to update the ui plug-in jar. This is not an elegant solution, merely an effective solution.

看来,这是你把外部的Eclipse plug-ins列入Eclipse RCP一揽子计划的唯一途径。 我希望有人会证明我错。

问题回答

You are getting a compiler error, this implies that the OSGi resolver was happy with your dependency setup, otherwise you would have failed before compilation with an unresolved dependency.

我怀疑,这与在项目中拥有双号档案而不是来源档案有关。 Try establishing the output. property in gov.bop.eclipse.logging/build.properties to be the path to the rafter including the statfile (relative to the present project).

如果是“Plug-in”项目,你可以通过正确点击“gov.bop.rabid.xxx.ui/methA-INF/MANIFEST.MF文档和选择PDE工具->,从而将产品出口期间使用的类别整数翻一番。 这将产生一个建筑材料,你可以检查“@dot”目标,以了解使用该分类。

造成这种问题的其他原因(我在此确实不是这样)是:

  • Having an incorrect Bundle-ClassPath entry in the manifest. If not specified, the default value is . , which means the .class files are in the root of the binary bundle.
  • Having nested jars in your bundle, with one jar depending on the other, but not defining the order in which these jars are compiled (jars.compile.order).




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签