[java] switch to java7