# java.lang.ClassNotFoundException: org.bouncycastle.operator.OperatorCreationException

**URL:** <https://discuss.elastic.co/t/java-lang-classnotfoundexception-org-bouncycastle-operator-operatorcreationexception/171133>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [March 6, 2019, 2:27pm UTC](https://discuss.elastic.co/t/java-lang-classnotfoundexception-org-bouncycastle-operator-operatorcreationexception/171133 "2019-03-06T14:27:57Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![avinash\_07](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@avinash\_07](https://discuss.elastic.co/u/avinash_07)\
**Post date:** [March 6, 2019, 5:08pm UTC](https://discuss.elastic.co/t/java-lang-classnotfoundexception-org-bouncycastle-operator-operatorcreationexception/171133/5 "2019-03-06T17:08:44Z")

</div>

Apologies. I will make sure that I follow the guidelines next time.

- Why did you manually add bouncycastle lib?  
Initially when I ran my application, I got the below error

I searched online and implemented the solution given in `[this topic](https://discuss.elastic.co/t/unable-to-create-prebuiltxpacktransportclient-client-x-pack/135384) . I ran the application after making the above change, now I am getting bouncycastle error

- What is your Java version.  
1.8

Yes, I plan to move to rest client in next couple of months.

---

_[View the full topic](https://discuss.elastic.co/t/java-lang-classnotfoundexception-org-bouncycastle-operator-operatorcreationexception/171133)._
