run mbg in java