fixed compile script to compile only java files