Teamcity agent has oracle jdk8 installed.