Update compile

Modified for using java 1.7