M1MIAGE work in java