也许我错过了什么。
Manifest-Version: 1.0
Class-Path: lib/commons-lang-2.3.jar lib/commons-logging-1.1.1.jar lib/concar.jar lib/ini4j-0.5.2-SNAPSHOT.jar lib/javadbf-0.4.0.jar lib/log4j-1.2.16.jar lib/spring-asm-3.2.0.M1.jar lib/spring-beans-3.2.0.M1.jar
lib/spring-context-3.2.0.M1.jar lib/spring-context-support-3.2.0.M1.jar lib/spring-core-3.2.0.M1.jar
lib/spring-expression-3.2.0.M1.jar lib/spring-orm-3.2.0.M1.jar lib/spring-oxm-3.2.0.M1.jar lib/spring-test-3.2.0.M1.jar
lib/spring-tx-3.2.0.M1.jar lib/spring-web-3.2.0.M1.jar lib/spring-webmvc-3.0.5.RELEASE.jar lib/spring-webmvc-3.2.0.M1.jar
lib/spring-ws-1.5.9-all.jar lib/swingx-1.6.1.jar lib/troughoasis.jar
Main-Class: mypackage.com.IniClass
在java jar创建过程结束时,我收到此错误:“无效的头文件”
答案 0 :(得分:0)
我希望这是答案,但在“Class-Path”开始新行之前的两个空格可以解决问题。
Manifest-Version: 1.0
Class-Path: lib/commons-lang-2.3.jar lib/commons-logging-1.1.1.jar lib/concar.jar lib/ini4j-0.5.2-SNAPSHOT.jar
lib/javadbf-0.4.0.jar lib/log4j-1.2.16.jar lib/spring-asm-3.2.0.M1.jar lib/spring-beans-3.2.0.M1.jar lib/spring-context-3.2.0.M1.jar
lib/spring-context-support-3.2.0.M1.jar lib/spring-core-3.2.0.M1.jar lib/spring-expression-3.2.0.M1.jar lib/spring-orm-3.2.0.M1.jar
lib/spring-oxm-3.2.0.M1.jar lib/spring-test-3.2.0.M1.jar lib/spring-tx-3.2.0.M1.jar lib/spring-web-3.2.0.M1.jar
lib/spring-webmvc-3.0.5.RELEASE.jar lib/spring-webmvc-3.2.0.M1.jar lib/spring-ws-1.5.9-all.jar lib/swingx-1.6.1.jar lib/troughoasis.jar
Main-Class: mypackage.com.IniClass