English 中文(简体)
如何解决与不同图书馆的冲突?
原标题:How to solve jars conflict with different libraries?
  • 时间:2012-01-12 23:15:21
  •  标签:
  • eclipse
  • jar

i 我在项目中使用Repast Simphony,图书馆载有许多条令。 与此同时,我正在使用GeoTools,由于Repast Simphony使用2.3.3的地托器,并且想使用2.7的地托器,因此这些设备是冲突。

问题不在于如何从Repast Simphony中删除某些jar。 添加这一句,即正确点击该项目,并选择<>Repast Simphony> Add Repast Simphony to this project

in the build path i can t edit that library. under the bulid path, after i press edit the only thing i can change is the name of the library. and in the .project file i found

<buildSpec>
.
.
.
<buildCommand>          <name>repast.simphony.eclipse.repast_simphony_builder</name>            <arguments>             </arguments>        </buildCommand>
</buildSpec>
<natures>
.
.
.
<nature>repast.simphony.eclipse.repast_simphony_nature</nature>
</natures>

并且,在普通档案中,它认为:

<classpathentry kind="con" path="REPAST_SIMPHONY_SUPPORT"/>

then i suspend all validators and remove the confilcted jars from the Repast library, however, it s not working. i can t build project due to lack of jars. so i am think about to edit some files to cross those conflict jars from the repast library, but i don t know how?

有一个“C:Program fileseclipseplugins epast.simphony.core_2.0.0plugin_jpf.xml”档案和“C:Program fileseclipseplugins epast.simphony.core_2.0.0META-INF MANIFEST.MF”档案。 在以上2份档案中,所有档案都列有。 我排除了某些jar路,但没有区别。

问题回答

If the Repath library is written in a clean way, you could simply use in your code full names.and.paths for all conflicting include operators. If the Repath does it, too, there will be no conflicts thereafter.





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.