Fixed jdk 1.8 for console and idea