add java update script, untested