Check for java and mention dependency in readme. Fixes #1.