Be much more liberal in detecting the JDK

Even detect JDK 1.6, which probably shouldn't really be used any more