Article View: borland.public.jbuilder.java.language
Article #126Re: Corrupt Zip File
From: Alvin Randolph
Date: Wed, 05 Sep 2007 02:28
Date: Wed, 05 Sep 2007 02:28
41 lines
2633 bytes
2633 bytes
"Paul Nichols [TeamB]" <paul@none.com> wrote in message
news:46dd7a87$1@newsgroups.borland.com...
> Alvin Randolph wrote:
>> Hello:
>> I created a jar file made up of several class files from package
>> Importlib so I can import them to another package. Everytime I made
>> a change to one of the Importlib files. I created the jar file with
>>
>> jar cvfm importest.jar manifest.txt importlib.*
>>
>> This appeared to work, but after about 3 or 4 recreations I
>> sometime got a JBuilder6 error message
>>
>> Cannot access class Outerclass; java.io.IOException: zip file is
>> corrupted ....
>>
>> Sometimes I could run the jar command again and it would run fine.
>> But other times I would have to exit JBuilder, delete the jar file,
>> recreate a new one b4 it would work. What is causing this & how do
>> I fix it ??
>
> I have noticed that on Windows, when you overwrite a file, it either
> (1) Does not overwrite or (2) becomes corrupted. So your problem may
> not be a JB problem, but a Windows problem.
>
> If you are doing this via a Unix/Linux OS, please tell us which one.
I am using Windows XP with JBuilder6.
I've also noticed that when I tried to run a jar file (java -cp
path -jar
... ) after having recreating 3 or 4 times, it didn't run. When I did
a
table listing of the jar file (jar tf ...), the the class containing
the
main method had changed from what I gave in the manifest file.
Thanks for the assistance.
Alvin R.
Technical Details
Message-ID:
<46de1457$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46dd3735$1@newsgroups.borland.com> <46dd7a87$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,697ba75bea895371 X-Google-Attributes: gidf74b3,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Alvin Randolph" <a.g.randolph@worldnet.att.net> Newsgroups: borland.public.jbuilder.java.language References: <46dd3735$1@newsgroups.borland.com> <46dd7a87$1@newsgroups.borland.com> Subject: Re: Corrupt Zip File Date: Tue, 4 Sep 2007 19:28:20 -0700 Lines: 42 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 NNTP-Posting-Host: 68.99.253.139 Message-ID: <46de1457$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1188959319 68.99.253.139 (4 Sep 2007 19:28:39 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail