如何在類路徑中使用通配符添加多個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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章