I am trying to exort a Java project with Eclipse 3.6.1 to a runnable Jar. This used to work properly but failed today, afer I added some additional Jars to my class path.
You could try modifying the line
<jar destfile="/Volumes/resi/talosBase.jar" filesetmanifest="mergewithoutmain">
in your build file to be
<jar destfile="/Volumes/resi/talosBase.jar" filesetmanifest="mergewithoutmain" duplicate="preserve">
This will cause ant to preserve the first entry of any duplicate and ignore the rest. The default behavious is "add" so you can end up with multiple files of the same fully qualified name. The other valid entry for this paramter is "fail" but I don't think that will help you here.
OLD-Answer
Delete your last created runnable jar either manually or alter the generated ant script to do so before creating a new one
I too had the same problem, but then I slightly modified the build settings in Eclipse to the one mentioned below.
This solved the duplicate entry issue for me, it just copies all required jars to a subdirectory.
Cleaning the project should help. It is not eclipse bug, but rather jar maker's one. Apparantly, it takes the classes and see that such classes already exist and can't understand that it should replace them instead of adding.
Try removing the jars and adding it once again.. this got the error resolved for me..
Cleaning the project will help you.
in my case cleaning the project doesnt change any thing so i use a workaround :
and I change my ant build script by adding option as indicate in this post duplicate="preserve" (to keep the first version on the duplicated file )
hope it help