Java compressor