使用的是JRE 编译,而不是JDK,所以出错了, 把java Build Path里面的Libraries中的JRE System Libraries(JRE7)改为jdk7, maven编译需要jdk, 而不是jre