build for java7