use 'release' instead of 'target' and 'source' When running jtreg with openjdk-8 and the agentvm it will fail to run with "java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer". An easy fix is to replace "source=1.7 target=1.7" with "release=7" in the ant build script.