DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 8 of 8

Hybrid View

  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
    Jun 2006
    Posts
    4
    wait i will tel u

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

  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, 05:04 AM
  2. Replies: 1
    Last Post: 07-19-2005, 01:03 AM
  3. Replies: 3
    Last Post: 09-10-2002, 08:02 AM
  4. How long before the next version??
    By _CAG in forum .NET
    Replies: 146
    Last Post: 08-12-2002, 10:40 PM
  5. Creating Executeble Jar file
    By Sandeep in forum Java
    Replies: 0
    Last Post: 11-06-2001, 05:20 AM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links