• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

classes in jar files

 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you replace one of the class files in a jar file? I have a jar file which contains hundreds of class files. I want to add a tiny little thing to one of those classes and see it in action when I run the jar. So I want to overwrite the existing class version in the jar file. Can this be done or is there some requirement that I need to rebuild the jar file from scratch?
Thanks.
Paul
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A jar file is just a zipped file. It can be manipulated by any zip uptility. For instance, I use a tool called "File Librarian" and I sometimes use WinZip. Each of these allow me to select one of the files in the jar, and extract only it. Then I make my changes delete the old version of the file, and add the new version back in.
 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just found out that you can....
 
reply
    Bookmark Topic Watch Topic
  • New Topic