Ingest-attachment not parsing docx

According to the docs, ElasticSearch honours the JAVA_HOME environment variable. I installed jdk8 (alongside an existing jdk10), then changed JAVA_HOME to point to the jdk8. I cannot get docx files to parse still.

I don't know what else to try, apart from uninstalling jdk10, which I don't want to do.