compile and invoke java file