add java dependency and settings. more description in README.md.