File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
cant add class file to jar
Joined: Feb 26, 2003
Jun 25, 2004 03:45:00
i'm trying to add a class file to an existing jar using the following command (win2k Os)
jar uf basiswebtop.jar list.class
java.io.IOException: Error in writing existing jar file at sun.tools.jar.Main.run(Main.java:178) at sun.tools.jar.Main.main(Main.java:904)
i've declared the class as a member of the package.
One day all greenhorns will run free ...
Joined: Jan 30, 2000
Jun 25, 2004 18:15:00
Confession from an experienced Java developer:
If I encounter the need to add any kind of file (*.class included) to a ZIP, I mean, a JAR file, I use a ZIP utility like WinZip (which is not the only ZIP util).
I hope I don't become ostracized from the Java community for confessing.
Reality Check: Obviously I develop in a Win32 environment, not UNIX.
BTW: ZIP and JAR files are the same. I think they are the same even when MAXIMUM compression is used in the ZIP utility. But don't take my word for it.
If you use NO COMPRESSION in the ZIP utility, they are the same. (Didn't MANIFEST files go the way of Compuserve?)
Hope I didn't confuse more than supply encouragement for further study?
Senior Java Web Application Developer, SCPJ2, SCWCD
subject: cant add class file to jar
.class file editor in netbeans
another URGENT JAR question
I still can't do this
jar files and the console
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014