Update java class to include difference between debian 6 and 7

Debian 6 doesn't have openjdk 7 so need to make sure we install the right package