Run commands and Java build optimization (part 1)