Fixes Java installation in vagrant.

@rhelmer r?