Fix JDK detection and update version

- Fix Avatar did not detect JDK properly
- Add version update