remove java cruft