[shell] support to select java version when generating app