Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Duplicate name in manifest..... WARNING

GDB
2012-12-11
2013-05-23
  • GDB
    GDB
    2012-12-11

    OK, had some false starts, which were my fault, I am stuck.  Not sure where to go from here, I could use some help please.

    I have a fairly simple Eclipse project.  Runs fine in the IDE.  Exported to a single jar.  If I unzip it I can see all of my classes and the few gifs, so I think the export worked.  Below is a copy of what was done in Terminal.

    Obviously I noticed the WARNING message.  Is that why it crashes when I run it?  If so how do i fix it.

    Thanks,
    George

    Georges-MacBook-Pro:onejartest gbarnabic$ mkdir boot3
    Georges-MacBook-Pro:onejartest gbarnabic$ cd boot3
    Georges-MacBook-Pro:boot3 gbarnabic$ jar -xvf ../one-jar-boot.jar
    inflated: META-INF/MANIFEST.MF
    inflated: com/simontuffs/onejar/Boot.class
    inflated: com/simontuffs/onejar/Boot.java
    inflated: doc/one-jar-license.txt
    inflated: com/simontuffs/onejar/Handler$1.class
    inflated: com/simontuffs/onejar/Handler.class
    inflated: com/simontuffs/onejar/Handler.java
    inflated: com/simontuffs/onejar/JarClassLoader$ByteCode.class
    inflated: com/simontuffs/onejar/JarClassLoader.class
    inflated: com/simontuffs/onejar/JarClassLoader.java
    inflated: boot-manifest.mf
    Georges-MacBook-Pro:boot3 gbarnabic$ jar -uvfm ../worldvibe6.jar boot-manifest.mf .
    Dec 10, 2012 9:57:14 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Manifest-Version.
    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.
    updated manifest
    adding: boot-manifest.mf(in = 91) (out= 88)(deflated 3%)
    adding: com/(in = 0) (out= 0)(stored 0%)
    adding: com/simontuffs/(in = 0) (out= 0)(stored 0%)
    adding: com/simontuffs/onejar/(in = 0) (out= 0)(stored 0%)
    adding: com/simontuffs/onejar/Boot.class(in = 6696) (out= 3305)(deflated 50%)
    adding: com/simontuffs/onejar/Boot.java(in = 9582) (out= 3344)(deflated 65%)
    adding: com/simontuffs/onejar/Handler$1.class(in = 1072) (out= 540)(deflated 49%)
    adding: com/simontuffs/onejar/Handler.class(in = 1021) (out= 566)(deflated 44%)
    adding: com/simontuffs/onejar/Handler.java(in = 989) (out= 466)(deflated 52%)
    adding: com/simontuffs/onejar/JarClassLoader$ByteCode.class(in = 866) (out= 474)(deflated 45%)
    adding: com/simontuffs/onejar/JarClassLoader.class(in = 15506) (out= 7532)(deflated 51%)
    adding: com/simontuffs/onejar/JarClassLoader.java(in = 24556) (out= 7938)(deflated 67%)
    adding: doc/(in = 0) (out= 0)(stored 0%)
    adding: doc/one-jar-license.txt(in = 1610) (out= 814)(deflated 49%)
    ignoring entry META-INF/
    ignoring entry META-INF/MANIFEST.MF
    Georges-MacBook-Pro:boot3 gbarnabic$

    ********************************** all seemed good except for the WARNING: Duplicate name in Manifest:…… *****************

    Running it now…. the error log goes on for pages, here is the beginning of it.

    Georges-MacBook-Pro:onejartest gbarnabic$ java -jar worldvibe6.jar
    Exception in thread "main" java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.simontuffs.onejar.Boot.run(Boot.java:247)
         at com.simontuffs.onejar.Boot.main(Boot.java:105)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.simontuffs.onejar.Boot.run(Boot.java:247)
         at com.simontuffs.onejar.Boot.main(Boot.java:105)
         … 6 more
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.simontuffs.onejar.Boot.run(Boot.java:247)
         at com.simontuffs.onejar.Boot.main(Boot.java:105)
         … 12 more
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.simontuffs.onejar.Boot.run(Boot.java:247)
         at com.simontuffs.onejar.Boot.main(Boot.java:105)
         … 18 more
    …more…
    ….