compile with java 1.7
fix static variable order.