Many improvements to the java packager.