wKiom1dCpTehAI4TAADVVZRyMFQ411.png

  1. 导出项目,选java-->runnable java file

  2.将jar中架包压缩文件手动解压到jar默认文件中

  3.META-INF/MANIFEST.MF文件

Manifest-Version: 1.0
Rsrc-Class-Path: ./xercesImpl-2.6.2.jar commons-io.jar poi-ooxml-sche
 mas-3.8-20120326.jar
Class-Path: .
Rsrc-Main-Class: com.tolo.tabcs.util.Jexample
Main-Class: com.tolo.tabcs.util.Jexample

  4.制作bat文件

java -jar D:\testContractExp\testexp20160517.jar
pause

5.运行.bat文件

注意:必须安装jdk,我这边的是1.6