Updated the java compatibility to version 1.8