updated hack for java 8 / oracle version / intellij