You probably already know this but the JDK that UE uses is in the project settings. Is the error exactly the same with 1.8 and 1.7?