remove java and other unnecessary resources