ElasticSearch is bundled with its own version of OpenJDK. Using a standalone JDK is not necessary or recommended.