This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cant add class file to jar

 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i'm trying to add a class file to an existing jar using the following command (win2k Os)

jar uf basiswebtop.jar list.class



i've declared the class as a member of the package.

cheers

chris
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic