Click here to Skip to main content
15,897,273 members
Home / Discussions / Java
   

Java

 
AnswerRe: Jar extraction errors Pin
Nagy Vilmos14-Jun-11 3:30
professionalNagy Vilmos14-Jun-11 3:30 
GeneralRe: Jar extraction errors Pin
Liam S. Crouch14-Jun-11 3:56
Liam S. Crouch14-Jun-11 3:56 
GeneralRe: Jar extraction errors Pin
Nagy Vilmos14-Jun-11 4:03
professionalNagy Vilmos14-Jun-11 4:03 
GeneralRe: Jar extraction errors Pin
Liam S. Crouch14-Jun-11 4:04
Liam S. Crouch14-Jun-11 4:04 
GeneralRe: Jar extraction errors Pin
Nagy Vilmos14-Jun-11 4:13
professionalNagy Vilmos14-Jun-11 4:13 
GeneralRe: Jar extraction errors Pin
Liam S. Crouch14-Jun-11 4:34
Liam S. Crouch14-Jun-11 4:34 
GeneralRe: Jar extraction errors Pin
Nagy Vilmos14-Jun-11 4:38
professionalNagy Vilmos14-Jun-11 4:38 
GeneralRe: Jar extraction errors Pin
Nagy Vilmos14-Jun-11 4:44
professionalNagy Vilmos14-Jun-11 4:44 
The lines:
Java
if(theFile.exists())
{
    fos = new FileOutputStream(Util.getWorkingDirectory().getAbsoluteFile() + "/bin/temp/" + entry.getName(), true);
}
else
{
    fos = new FileOutputStream(Util.getWorkingDirectory().getAbsoluteFile() + "/bin/temp/" + entry.getName());
}


Can be written:
fos = new FileOutputStream(
            Util.getWorkingDirectory().getAbsoluteFile() + "/bin/temp/" + entry.getName(),
            theFile.exists());


That's readable.

Now, check if the file exists, if it doesn't [which I suspect], is the directory name valid? Is the file name valid? Do you have access to write to the location? This is called debugging and the programmer is expected to do this. The more information you can provide, the easier it is for us to help. Right now, I can offer little more than general tips; even if they are bloody good ones.


Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

GeneralRe: Jar extraction errors Pin
Liam S. Crouch14-Jun-11 5:06
Liam S. Crouch14-Jun-11 5:06 
GeneralRe: Jar extraction errors Pin
Nagy Vilmos14-Jun-11 5:14
professionalNagy Vilmos14-Jun-11 5:14 
GeneralRe: Jar extraction errors Pin
Liam S. Crouch14-Jun-11 5:18
Liam S. Crouch14-Jun-11 5:18 
GeneralRe: Jar extraction errors Pin
Nagy Vilmos14-Jun-11 5:25
professionalNagy Vilmos14-Jun-11 5:25 
GeneralRe: Jar extraction errors Pin
Liam S. Crouch14-Jun-11 5:32
Liam S. Crouch14-Jun-11 5:32 
GeneralRe: Jar extraction errors Pin
Nagy Vilmos14-Jun-11 5:51
professionalNagy Vilmos14-Jun-11 5:51 
QuestionDebug information not present in the .class file.. Pin
Indrojeet9-Jun-11 18:49
Indrojeet9-Jun-11 18:49 
AnswerRe: Debug information not present in the .class file.. Pin
Peter_in_27809-Jun-11 19:15
professionalPeter_in_27809-Jun-11 19:15 
GeneralRe: Debug information not present in the .class file.. Pin
Indrojeet9-Jun-11 20:28
Indrojeet9-Jun-11 20:28 
AnswerRe: Debug information not present in the .class file.. Pin
Peter_in_27809-Jun-11 20:43
professionalPeter_in_27809-Jun-11 20:43 
GeneralRe: Debug information not present in the .class file.. Pin
Indrojeet9-Jun-11 20:54
Indrojeet9-Jun-11 20:54 
AnswerRe: Debug information not present in the .class file.. Pin
Peter_in_27809-Jun-11 21:22
professionalPeter_in_27809-Jun-11 21:22 
GeneralRe: Debug information not present in the .class file.. Pin
Indrojeet9-Jun-11 21:25
Indrojeet9-Jun-11 21:25 
Question.jar File operations Pin
Liam S. Crouch8-Jun-11 19:53
Liam S. Crouch8-Jun-11 19:53 
AnswerRe: .jar File operations Pin
Peter_in_27808-Jun-11 20:45
professionalPeter_in_27808-Jun-11 20:45 
GeneralRe: .jar File operations Pin
Liam S. Crouch13-Jun-11 8:43
Liam S. Crouch13-Jun-11 8:43 
AnswerRe: .jar File operations Pin
Richard MacCutchan8-Jun-11 21:49
mveRichard MacCutchan8-Jun-11 21:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.