Add java 1.6 support
Merge pull request #2 from tonivdv/java16

Add java 1.6 support