简体   繁体   English

全局添加外部jars

[英]Add external jars globally

Is there any way to add an jar file globally so that anyone can use it without configuring build paths again and again?有没有办法在全局范围内添加 jar 文件,以便任何人都可以使用它而无需一次又一次地配置构建路径?

I have a external jar so when I import it it will look like this我有一个外部 jar 所以当我导入它时它看起来像这样

C:\Users\Username\Path\external.jar

Can I add it like我可以像这样添加吗

ProjectPath\external.jar

So that users in my github repo don't need to reconfigure again and again.这样我的 github repo 中的用户就不需要一次又一次地重新配置。

Please use Add JARs... instead of Add External JARs... for project-internal JARs.请使用Add JARs...而不是Add External JARs...用于项目内部 JARs。

Alternatively, you can use Maven or Gradle so that the JARs don't have to be part of the project.或者,您可以使用 Maven 或 Gradle 以便 JARs 不必成为项目的一部分。

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

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