windows系统: @echo off java -jar xxx.jar & // 需要运行的jar包位置,&符号多个的时候需要写 java -jar xxx.jar pause // 防止运行完毕后直接关闭界面