Updated java version to 1.8.
Update Travis config to use Java 8.