Skip to main content

Thread: Java program to recursively compress stuff


hi, name adam miller. i'm making application recursively go through specified directory , compress files of type. right works, zip algorithm, crap compared 7z. want incorporate 7z algorithm functionality of program spits out 7z files instead of zip. there 2 ways can this:

1) add lmza library eclipse/my library , way
2) configure run through terminal passing commands runtime

i'm having hell is, , think done several ways, not exclusive java. might shell script. made because have huge collection of ebooks , pdf format crap (chm better). anyway, if help, i've got source code pasted below.

currently, if @ it, please tell me how configure program run subprocesses terminal.

file main function in (think messed on insignificant detail. it's fighting me. might ignore 1 , write yourself)
http://pastebin.com/f25d470a5

file method compress each file recursively 1 need tips on
http://pastebin.com/ff09222c

eh... 1 liner in bash. don't know args offhand 7z, you'll need alter liking...
code:
find . -type f -iname *.pdf -exec 7z {} \;


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Java program to recursively compress stuff


Ubuntu

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'