如何在类路径中使用通配符添加多个jar? [重复] - How to use a wildcard in the classpath to add multiple jars? [duplicate]

问题:

This question already has an answer here: 这个问题在这里已有答案:

I have been using so many 3rd party libraries(jar files) that my CLASSPATH is completely messed up as i have to include the path for every single jar file that i use. 我一直在使用这么多的第三方库(jar文件),我的CLASSPATH完全搞砸了,因为我必须包含我使用的每个jar文件的路径。

I've been wondering if there is a way to include all the jar files in a folder using wildcard(*) operator (like *.jar). 我一直想知道是否有办法使用通配符(*)运算符(如* .jar)将所有jar文件包含在文件夹中。 But it seems to be not working. 但似乎没有用。 Is there any other way that can shorten the CLASSPATH that currently looks like an essay ;) on my PC?. 有没有其他方法可以缩短当前看起来像文章的CLASSPATH;)在我的电脑上?


解决方案:

参考: https://stackoom.com/en/question/5Bp7
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章