add -f option when using rm *.class so you don't get a warning if there are no .class files