使用cd命令进入所要打包的文件夹 cd /d d:\jar-test jar -cvf 将该文件夹中 util的所有文件打包到my.jar中 jar -cvf my.jar util * 切换盘符命令 磁盘名称 : 如 c: