Can not build source code without suitable jdk

Read this and specifically the "Also be patient" part.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

I don't have the answer as I did not build elasticsearch recently. Someone from elasticsearch dev team might be able to answer hopefully.