Refactor a little.
Fix download JDK example.