heavily reafactored. add "jdk-installer.rb".