Is there any way where tgz file which is been compressed in Ubuntu OS
can be extracted in windows using java.
My code works properly if the files are been compressed in windows. But if the files are compressed in ubuntu then its not extracting properly. DO anyone knows solution for this
Asked
Active
Viewed 540 times
0

Kalyan Chavali
- 1,330
- 8
- 24

Dimple
- 111
- 2
- 11
-
Have a look at this http://stackoverflow.com/questions/7128171/how-to-compress-decompress-tar-gz-files-in-java – Kalyan Chavali Jul 10 '15 at 04:26
-
i tried this but not working – Dimple Jul 10 '15 at 06:57
-
This could be due to encoding differences, did you try commons-compress ? http://java-tweets.blogspot.sg/2012/07/untar-targz-file-with-apache-commons.html – ring bearer Jul 10 '15 at 08:51