Convert to use JDK 6 for compatibility.