2 asdadfsdgdfg asdadfsdgdfg 于 2014.01.06 22:38 提问

Exception in thread "main" java.io.IOException: invalid manifest format

fat打包后执行:
@echo off
set JAVA_HOME=D:\study\work\tms\jdk1.6.0_02
%JAVA_HOME%\bin\java -jar -Xms64m -Xmx512m ezTMS2.0-GpsServer_fat.jar
@echo on
出现错误:
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Exception in thread "main" java.io.IOException: invalid manifest format
at java.util.jar.Manifest.read(Manifest.java:208)
at java.util.jar.Manifest.(Manifest.java:52)
at java.util.jar.JarFile.getManifestFromReference(JarFile.java:160)
at java.util.jar.JarFile.getManifest(JarFile.java:146)
下面是一部分MANIFEST.MF文件中的内容:
Manifest-Version: 1.0
Created-By: Fat Jar Eclipse Plug-In
Main-Class: com.thtf.ezone.MainServer

Name: javax/activation/MimeTypeParseException.class
SHA1-Digest: uxV3qLHRu5JTOFrHnJXm13AO+0M=

Name: javax/activation/CommandInfo.class
SHA1-Digest: 1cKS/VKDQRQtAdvjQSJXZfjuKnM=

Name: com/sun/activation/viewers/ImageViewer.class
SHA1-Digest: gEg0GCvDjyJ0wogJ+Yqs5pkgMe8=

Name: javax/activation/MimeTypeParameterList.class
SHA1-Digest: bCozM0t+J3YcJVez99Mw8jo4ES0=

Name: javax/activation/DataContentHandlerFactory.class
SHA1-Digest: 7sK1N48hT5JuGK4CPHqlDB648/8=

Name: javax/activation/DataSourceDataContentHandler.class
SHA1-Digest: YioWWrfLNtVjS7sPDORm1VCljO8=
求大神指点,详细请加qq:七六一三七一二二零,加时请写:csdn回答

1个回答

bob548811888
bob548811888   2014.01.07 08:50

是不是有两个main程序入口?删掉一个看看。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!