change menu for java version