Apparently while the readme in branch 5.1 promises compatibility with Java 6, this was mistakenly broken.
This JIRA to track and fix it.
Related discussion on the mailing list: