0

也许我错过了什么。

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 创建过程结束时,我收到此错误:“无效的头文件”

4

1 回答 1

0

我希望这是答案,但是在“类路径”处开始新行之前的两个空格可以解决问题。

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
于 2012-12-06T19:18:18.150 回答