Add support for Oracle Java 8

issue #1048