Update OpenCMD function for load console2 first in java filetype