如果我運行:斯卡拉jar文件 - CP與罐子
java -jar corpus-tools-0.0.2.jar removeTSfromCorpus
它給我的錯誤:
Failed to parse the trailing argument list: 'removeTSfromCorpus'
但是,如果我運行:
java -cp corpus-tools-0.0.2.jar removeTSfromCorpus
它可以無縫工作。 scala-library包含在依賴項(MANIFEST)中。 -cp和-jar有什麼區別?我認爲在這種情況下應該是相等的
謝謝!