"Java Build Path“对话框中的"Order and Export”选项卡有什么用?通过名称'order',我可以猜到JRE系统库在插件依赖项之前被搜索,但是为什么我们在构建路径中有'Export‘?元素左边的按钮是什么?
已添加
这是我从Eclipse distilled借来的例子。
orderes.webapp依赖于订单,但它可能使用ubl和catalog中定义的类。
在这种情况下,订单可以导出catalog和ubl,以便依赖它的包可以使用catalog和ubl。
还有更多关于“订单和出口”的东西。
.classpath
文件以添加exported=true
,如<classpathentry exported="true" kind="lib" path="lib/log4j-1.2.7.jar"/>
。参考文献
https://stackoverflow.com/questions/13942628
复制相似问题