Updated deprecated Compile to JavaCompile