Java 1.5 compatibility

Seems like many research labs are stuck with old versions of Java;
working toward 1.5 compatibility now.