According to the install guide... it is supported.
https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html
"Elasticsearch requires Java 8 or later. Use the official Oracle distribution or an open-source distribution such as OpenJDK."