# Elastic 6.3.2 failing to install custom plugin with java.nio.file.NoSuchFileException Ask

**URL:** <https://discuss.elastic.co/t/elastic-6-3-2-failing-to-install-custom-plugin-with-java-nio-file-nosuchfileexception-ask/142417>\
**Category:** Elasticsearch\
**Created:** [July 31, 2018, 4:37pm UTC](https://discuss.elastic.co/t/elastic-6-3-2-failing-to-install-custom-plugin-with-java-nio-file-nosuchfileexception-ask/142417 "2018-07-31T16:37:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gautu7](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@gautu7](https://discuss.elastic.co/u/gautu7)\
**Post date:** [July 31, 2018, 4:37pm UTC](https://discuss.elastic.co/t/elastic-6-3-2-failing-to-install-custom-plugin-with-java-nio-file-nosuchfileexception-ask/142417/1 "2018-07-31T16:37:19Z")

</div>

I have a simple custom realm jar which I zipped and the plugin-descriptor.properties file as mentioned in [https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-authors.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-authors.html)

When I try to do the install with C:\Program Files\elasticsearch-6.3.2\bin\> .\elasticsearch-plugin install file:///S:/Sourcecode/ElasticSearch/elastics earch/CustomPlugins/distribution/src/resources/plugin/elasticsearch-main/plugins/x-pack/extensions/auth-6.3.2.0.zip it fails with the below error

[=================================================] 100% Exception in thread "main" java.nio.file.NoSuchFileException: C:\Program Files\elasticsearch-6.3.2\plugins.installing-1 6160103648152251001\plugin-descriptor.properties at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:231) at java.base/java.nio.file.Files.newByteChannel(Files.java:369) at java.base/java.nio.file.Files.newByteChannel(Files.java:415) at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384) at java.base/java.nio.file.Files.newInputStream(Files.java:154) at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:163) at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:592) at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:717) at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:641) at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:225) at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:210) 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:79) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) at org.elasticsearch.cli.Command.main(Command.java:90) at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:48) PS C:\Program Files\elasticsearch-6.3.2\bin\>

zip  
---jar  
---plugin-descriptor.properties

---

<div class="post-metadata">

**Author:** ![gautu7](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@gautu7](https://discuss.elastic.co/u/gautu7)\
**Post date:** [July 31, 2018, 7:15pm UTC](https://discuss.elastic.co/t/elastic-6-3-2-failing-to-install-custom-plugin-with-java-nio-file-nosuchfileexception-ask/142417/2 "2018-07-31T19:15:22Z")

</div>

I re-organized my packaging, zipped it with maven and made sure the zip is only one root folder with the jar and property files and this helped resolve the issue.

---

<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:** [August 28, 2018, 7:15pm UTC](https://discuss.elastic.co/t/elastic-6-3-2-failing-to-install-custom-plugin-with-java-nio-file-nosuchfileexception-ask/142417/3 "2018-08-28T19:15:30Z")

</div>

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