check if java is removed correctly