try to perform a Java 5 compatible build