Thread View: borland.public.jbuilder.java.language
5 messages
5 total messages
Started by Alvin Randolph
Tue, 04 Sep 2007 10:44
Corrupt Zip File
Author: Alvin Randolph
Date: Tue, 04 Sep 2007 10:44
Date: Tue, 04 Sep 2007 10:44
19 lines
1678 bytes
1678 bytes
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 ?? -- Alvin Randolph
Re: Corrupt Zip File
Author: Paul Nichols [TeamB]
Date: Tue, 04 Sep 2007 15:32
Date: Tue, 04 Sep 2007 15:32
23 lines
1950 bytes
1950 bytes
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.
Re: Corrupt Zip File
Author: 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.
Re: Corrupt Zip File
Author: Paul Nichols [TeamB]
Date: Wed, 05 Sep 2007 05:32
Date: Wed, 05 Sep 2007 05:32
33 lines
2479 bytes
2479 bytes
Alvin Randolph wrote: > > "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 >>> > >> 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. >> > 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. > Try deleting the current jar before you build a new one, or rename the current jar file. See if that doesn't solve your problems. I have had this happen several times on Windows, not just with jar files either. Any compression algorithm seems to manifest this Windows bug.
Re: Corrupt Zip File
Author: David Orriss Jr [TeamB]
Date: Sun, 09 Sep 2007 23:50
Date: Sun, 09 Sep 2007 23:50
21 lines
2413 bytes
2413 bytes
In article <46de1457$1@newsgroups.borland.com>, "Alvin Randolph" <a.g.randolph@worldnet.att.net> wrote: > I am using Windows XP with JBuilder6. Running a virus scanner by any chance? I've seen this happen when scanners on running. -- David Orriss Jr. [TeamB] http://www.codethought.com * Please limit all responses to the newsgroups. Thanks! * My blog: http://codethought.com/blog Save yourself some time and check these sites: Borland Newsgroup Search: http://www.borland.com/newsgroups/ngsearch.html Joi Ellis's Faq-O-Matic: http://www.visi.com/~gyles19/fom-serve/cache/1.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads