# ES 6.5.1 FATAL error on launch with JDK 11; no error / runs OK with JDK 1.8

**URL:** https://discuss.elastic.co/t/es-6-5-1-fatal-error-on-launch-with-jdk-11-no-error-runs-ok-with-jdk-1-8/157944
**Category:** Elasticsearch
**Created:** [November 22, 2018, 9:57pm UTC](https://discuss.elastic.co/t/es-6-5-1-fatal-error-on-launch-with-jdk-11-no-error-runs-ok-with-jdk-1-8/157944 "2018-11-22T21:57:16Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pgomulka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pgomulka/32/45766_2.png) [@pgomulka](https://discuss.elastic.co/u/pgomulka)
#### Post date: [November 30, 2018, 3:58pm UTC](https://discuss.elastic.co/t/es-6-5-1-fatal-error-on-launch-with-jdk-11-no-error-runs-ok-with-jdk-1-8/157944/2 "2018-11-30T15:58:57Z")

</div>

Hi Jole, thank you for reaching out.

Would you be able to show your plugin-security.policy for x-pack-watcher ?  
Most likely it would be in "/usr/share/elasticsearch/modules/x-pack-watcher"

Could you also point to a place where you got your JDK from?

Please add following line  
`-Djava.security.debug=access,failure`  
to your elasticsearch jvm.options `/etc/elasticsearch/jvm.options`  
And then provide us with logs from `sudo journalctl -u elasticsearch`

Possibly the problem described by a user here might be similar to yours:

> [@Failing start elasticsearch 6.2.2 on ubuntu due to java.security permission denied](https://discuss.elastic.co/t/failing-start-elasticsearch-6-2-2-on-ubuntu-due-to-java-security-permission-denied/123902):
>
> Dear sirs, I'm struggling at starting up Elastic search on Ubuntu. My Settings: Java\_HOME: /usr/lib/jvm/java-8-oracle Java version: java version "1.8.0\_161" Java(TM) SE Runtime Environment (build 1.8.0\_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode) I've installed it with dpkg: dpkg -i elasticsearch-6.2.2.deb I have add this java.policy inside /etc/elasticsearch: // Standard extensions get all permissions by default grant codeBase "file:${{java.ext.dirs}}/\*" …

---

_[View the full topic](https://discuss.elastic.co/t/es-6-5-1-fatal-error-on-launch-with-jdk-11-no-error-runs-ok-with-jdk-1-8/157944)._
