Recompile the Java classes with JDK 1.6 for back-compatibility. Add a main() for easy testing.