Fix issue #1 with JDK 7

...using Java 7 as requested in PR #2