1.4: fix test for installed java

We switched to oracle java 1.7 for tests in 48c3ec06.
This PR removes the test for installed package openjdk-6 but just checks for the version string returned by java cli, since the oracle installation doesn't seem to leave behind a package that we can check for.