[Logo]

Register / Login

Java Forums » Engineering » IDEs, Version Control and other tools
Creating Jars from NetBeans
Post by: Rob Ross, Bartender
on Apr 03, 2002 17:47:00
Does anyone have any experience creating Jar files from NetBeans?
I'm getting an error when I compile my Jar recipie :

duplicate entry: META-INF/MANIFEST.MF
This prevents the contents of the archive from being updated.


I'm trying to bundle all my compiled .class files, as well as all the .jar files my classes are using, into one jar, with a main class selected so that I can execute by just double-clicking the finished jar file.
I have to admit, I haven't really created jar files a lot, and have never had to make a manifest file, so I don't know if I'm doing something wrong. I do know that all the jars I am including along with my class files each have their own manifest, but that should not be a problem because I can successfully build the same jar from ANT or from JBuilder, and our team also can build it from MetroWorks, so that tells me it's an issue with NetBeans.
Any ideas?
Thanks!

Post by: Rob Ross, Bartender
on Apr 05, 2002 21:41:00
Still having problems here with Jar files. Anyone know how to make jar files in NetBeans?

Post by: yangyu , Greenhorn
on Jul 12, 2002 23:46:00
 
Originally posted by Rob Ross:
Still having problems here with Jar files. Anyone know how to make jar files in NetBeans?

I have the same problem.Anyone helps me?Thanks.

Post by: Philipp Keller, Greenhorn
on Oct 15, 2003 09:18:00
 
Originally posted by yangyu:

I have the same problem.Anyone helps me?Thanks.

This is because you try to include multiple jar files which all have the MANIFEST.MF entry.. and since netbeans unjars them it tries to put it all into same directory (that is what I think happens) and therefore this message..
well, thats at least what my problem where when I got exactly the above message..

Post by: Matthew Phillips, Ranch Hand
on Oct 16, 2003 12:29:00
yangyu,
We don't have many rules at Javaranch, but our display name policy is one of them. Please read this policy and change your display name to comply with it if you wish to continue posting. Thanks.
You can change your display name here.





All times above are in ranch (not your local) time.
The current ranch time is
May 24, 2012 20:41:27.

Search | Recent Topics

Copyright © Copyright © 1998-2012 Paul Wheaton

Jump to top of page
Or visit our non-mobile (full) site