Click here to Skip to main content
15,914,357 members
Home / Discussions / Java
   

Java

 
AnswerRe: Jar extraction errors Pin
Nagy Vilmos14-Jun-11 3:23
professionalNagy Vilmos14-Jun-11 3:23 
GeneralRe: Jar extraction errors Pin
Liam S. Crouch14-Jun-11 3:25
Liam S. Crouch14-Jun-11 3:25 
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 
Still gives me the same error. Here is the new code:
BufferedOutputStream dest = null;<br />
		         FileInputStream fis = new <br />
			   FileInputStream(fName);<br />
		         JarInputStream zis = new <br />
		         JarInputStream(new BufferedInputStream(fis));<br />
		         ZipEntry entry;<br />
		         while((entry = zis.getNextEntry()) != null) {<br />
		            int count;<br />
		            byte data[] = new byte[BUFFER];<br />
		            // write the files to the disk<br />
		            File theFile = new File(Util.getWorkingDirectory().getAbsoluteFile() + "/bin/temp/" + entry.getName());<br />
		            FileOutputStream fos = null;<br />
		            if(theFile.exists())<br />
		            {<br />
		            	fos = new FileOutputStream(Util.getWorkingDirectory().getAbsoluteFile() + "/bin/temp/" + entry.getName(), true);<br />
		            }<br />
		            else<br />
		            {<br />
		            	fos = new FileOutputStream(Util.getWorkingDirectory().getAbsoluteFile() + "/bin/temp/" + entry.getName());<br />
		            }<br />
		           <br />
		            dest = new <br />
		              BufferedOutputStream(fos, BUFFER);<br />
		            while ((count = zis.read(data, 0, BUFFER)) <br />
		              != -1) {<br />
		               dest.write(data, 0, count);<br />
		            }<br />
		            dest.flush();<br />
		            dest.close();<br />
		         }<br />
		         zis.close();

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 
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 

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.