Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的 CLASSPATH 中同时引用几个 JAR。我可以为此使用星号吗?
是的。
java -cp "lib/*" MainClass
请注意,引号是强制性的,有关更多详细信息,请参阅此问题。