Java 6 needs classes to be public