# Using JNA in a custom plugin

**URL:** <https://discuss.elastic.co/t/using-jna-in-a-custom-plugin/165393>\
**Category:** Elasticsearch\
**Created:** [January 23, 2019, 11:46am UTC](https://discuss.elastic.co/t/using-jna-in-a-custom-plugin/165393 "2019-01-23T11:46:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninesalt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ninesalt/32/39981_2.png) [@ninesalt](https://discuss.elastic.co/u/ninesalt)\
**Post date:** [January 23, 2019, 11:46am UTC](https://discuss.elastic.co/t/using-jna-in-a-custom-plugin/165393/1 "2019-01-23T11:46:04Z")

</div>

I'm trying to build a plugin that uses JNA and I noticed that ES already has JNA as a dependency so I excluded it from my build configuration and the installation works. However during runtime I keep getting an error saying:

> java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")

Which leads me to think that maybe ES needs some higher permissions to allow me to use JNA. Can anyone help me?

---

<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:** [February 20, 2019, 11:46am UTC](https://discuss.elastic.co/t/using-jna-in-a-custom-plugin/165393/2 "2019-02-20T11:46:05Z")

</div>

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