updating jar file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: updating jar file

  1. #1
    Join Date
    Jan 2006
    Location
    India
    Posts
    30

    Question updating jar file

    Hi everybody ....


    i hav got another problem now i am trying to update the jar file but i get error that you that hav the write permision on it.

    So then i extracted thhat jar file usnig

    jar -xvf <filename.jar>

    but as i opened the jar using winzip i displays 50 files but after extracting i get only 35 files ... why so ?


    i update the gif inside that jar file

    & then i recompress to jar using

    jar -cvf myjar.jar myjar

    the jar is prepared of only 35 files ...

    & the applet doesnt work ...
    I Lov DevX forum

  2. #2
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    i suggest you to use totalcommander, which is freeware.
    it supports working with jar files like normal folders.
    you can use it to inject any classes to a jar file structure.

  3. #3
    Join Date
    Jan 2006
    Location
    India
    Posts
    30

    Question

    This is the error that i get when i try to update the gif file

    java.io.IOException: Error in writing existing jar file
    at sun.tools.jar.Main.run(Main.java:177)
    at sun.tools.jar.Main.main(Main.java:903)
    I Lov DevX forum

  4. #4
    Join Date
    Jan 2006
    Location
    India
    Posts
    30

    Question

    whenever i try to update the existing file inside that particular jar file it gets addedinstead of overwriting on it , it coexist in it with same filename... what should i do to overwrite it .?
    I Lov DevX forum

  5. #5
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    perhaps first remove it?

  6. #6
    Join Date
    Jan 2006
    Location
    India
    Posts
    30
    how should i remove it ,
    I Lov DevX forum

  7. #7
    Join Date
    Jun 2006
    Posts
    4
    wait i will tel u

  8. #8
    Join Date
    Jan 2006
    Location
    India
    Posts
    30
    wen what is takin u so long
    I Lov DevX forum

Similar Threads

  1. add .class file to jar file using .CLASSPATH
    By sssnbj_project in forum Java
    Replies: 0
    Last Post: 04-15-2006, 06:04 AM
  2. Replies: 1
    Last Post: 07-19-2005, 02:03 AM
  3. Replies: 3
    Last Post: 09-10-2002, 09:02 AM
  4. How long before the next version??
    By _CAG in forum .NET
    Replies: 146
    Last Post: 08-12-2002, 11:40 PM
  5. Creating Executeble Jar file
    By Sandeep in forum Java
    Replies: 0
    Last Post: 11-06-2001, 06:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center