Move to Java 8.

Closes #444.