Shouldn't we also check for 1.6? I had trouble with openjdk 1.7.