Switch JDK to 1.6

[#1636]