Automate Java 7 installation (use tee instead of >>)