# Error Installing Elasticsearch 6.6.2

**URL:** https://discuss.elastic.co/t/error-installing-elasticsearch-6-6-2/172546
**Category:** Elasticsearch
**Created:** [March 15, 2019, 2:06pm UTC](https://discuss.elastic.co/t/error-installing-elasticsearch-6-6-2/172546 "2019-03-15T14:06:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)
#### Post date: [March 15, 2019, 2:06pm UTC](https://discuss.elastic.co/t/error-installing-elasticsearch-6-6-2/172546/1 "2019-03-15T14:06:58Z")

</div>

Hi,  
I'm getting an exception while installing 6.6.2 on ubuntu 18.0.4.1...

```auto
Exception in thread "main" java.lang.ExceptionInInitializerError
	at java.base/javax.crypto.SecretKeyFactory.nextSpi(SecretKeyFactory.java:303)
	at java.base/javax.crypto.SecretKeyFactory.<init>(SecretKeyFactory.java:121)
	at java.base/javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:168)
	at org.elasticsearch.common.settings.KeyStoreWrapper.createCipher(KeyStoreWrapper.java:296)
	at org.elasticsearch.common.settings.KeyStoreWrapper.encrypt(KeyStoreWrapper.java:372)
	at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:482)
	at org.elasticsearch.common.settings.CreateKeyStoreCommand.execute(CreateKeyStoreCommand.java:58)
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
	at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
	at org.elasticsearch.cli.Command.main(Command.java:90)
	at org.elasticsearch.common.settings.KeyStoreCli.main(KeyStoreCli.java:40)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
	at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:118)
	... 13 more
Caused by: java.lang.SecurityException: Couldn't parse jurisdiction policy files in: unlimited
	at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:355)
	at java.base/javax.crypto.JceSecurity.access$000(JceSecurity.java:73)
	at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:109)
	at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:106)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:105)

```

What do I need to do in order to resolve this?

Regards,  
D

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 12, 2019, 2:07pm UTC](https://discuss.elastic.co/t/error-installing-elasticsearch-6-6-2/172546/2 "2019-04-12T14:07:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
