比如说,jar的MANIFEST.MF:

Manifest-Version: 1.0
Main-Class: office.Main
Class-Path: .
../lib/graphics.jar

  运行:

java -classpath .;lib\video.jar -jar Office.jar

  表面上看是对的,实际上因为jar中已经包含了Class-Path,所以这样的参数是无效的。吾怎么知道的?因为吾被坑了才知道。