Reduced Java requirement from 7 to 5

This change reduces the minimum Java requirement from Java 7 to Java 5.
This will allow more applications to utilize the API.