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.
我遇到了奇怪的事情:当我用“java -jar my.jar acc*”运行jar文件时,其中“acc*”是文件掩码,在我的main()的字符串数组中,我得到所有以“开头的文件名acc”,但不是面具本身。为什么?我怎样才能得到我的文件掩码?
尝试运行:
java -jar my.jar "acc*"
否则你也可以试试:
java -jar my.jar acc\*
这也应该可以正常工作。