Some adjustments

- Use new and better way of installing JDK6 (this works on all linux versions and alway succeeds)
- Move "sudo apt-get update" down, it will now be triggered after adding the JDK PPA
- Small formatting change