简体   繁体   English

在Java Eclipse中对库进行排序和排序

[英]Ordering and Sorting Libraries in Java Eclipse

In Eclipse, on many occasions i have had issues with the order in which libraries and jars of a project are loaded. 在Eclipse中,我曾多次遇到过加载项目库和jar的顺序问题。 ie Project -> BuildPath -> Configure Build Path -> Order and Export. 即项目 - > BuildPath - >配置构建路径 - >订单和导出。

I have the following questions: 我有以下问题:

  1. Are libraries loaded with preference? 库是否加载了首选项?
  2. If two libraries conflict, which one overrides the other? 如果两个库冲突,哪一个覆盖另一个?
  3. Should the src folder be at the top or should it be the JRE System Library. src文件夹应该在顶部还是应该是JRE系统库。 If so, Why? 如果是这样,为什么? Is this trivial? 这是微不足道的吗?

Direct answers or references to reading material would be great. 直接回答或参考阅读材料会很棒。

A quick google and I found a good reference about this "Order and Export" tab, from here on stackoverflow. 一个快速的谷歌和我从这里的stackoverflow上找到了关于这个“订单和导出”选项卡的一个很好的参考。

The "Order and Export" tab in "Java Build Path" “Java Build Path”中的“Order and Export”选项卡

在eclipse中快速浏览一下,我发现eclipse只允许在库组级别进行重新排序,而不是在库级别,因为问题是。

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

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