Reorganizer the files java and sh with some mistakes fixed.