Switch to Java 1.7

We need Java 1.7 or later for invokedynamic that we're going to use for
codegen.

Signed-off-by: Pekka Enberg <penberg@kernel.org>