feat(java) add clean up commands after installing java