RR: script modified for Java installation. Missing update-java-alternatives and also added unattended Java install bits.