Merge Java installer steps into one layer

Fixed review items:
 - Remove unnecessary "apt-get update"
 - Merge Java installer steps into one layer