# Exception while installing plugin

**URL:** https://discuss.elastic.co/t/exception-while-installing-plugin/40354
**Category:** Elasticsearch
**Created:** [January 28, 2016, 11:59am UTC](https://discuss.elastic.co/t/exception-while-installing-plugin/40354 "2016-01-28T11:59:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Kishore](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kishore](https://discuss.elastic.co/u/Kishore)
#### Post date: [January 28, 2016, 11:59am UTC](https://discuss.elastic.co/t/exception-while-installing-plugin/40354/1 "2016-01-28T11:59:59Z")

</div>

I am trying to install plugins, getting below error.

_"Exception in thread "main" java.lang.NoSuchMethodError: org.elasticsearch.common.settings.Settings.builder()Lorg/elasticsearch/common/settings/Settings$Builder;_

- 

```
   at org.elasticsearch.plugins.PluginManagerCliParser.main(PluginManagerCliParser.java:60)"*

```

Kindly help me in solving this.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 28, 2016, 1:17pm UTC](https://discuss.elastic.co/t/exception-while-installing-plugin/40354/2 "2016-01-28T13:17:09Z")

</div>

Version? How did you install it?

---

<div class="post-metadata">

### Author: ![Kishore](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kishore](https://discuss.elastic.co/u/Kishore)
#### Post date: [January 28, 2016, 1:22pm UTC](https://discuss.elastic.co/t/exception-while-installing-plugin/40354/3 "2016-01-28T13:22:02Z")

</div>

Upgraded to Elasticsearch version from 1.5.0 to 2.1.1 by Elastic given process and upgraded java version from 1.7.0 to 1.8.0  
Step 1) rm -rf plugins/  
2) cd /usr/share/elasticsearch  
3)./bin/plugin install mobz/elasticsearch-head  
The above process was worked in other instance.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 28, 2016, 1:50pm UTC](https://discuss.elastic.co/t/exception-while-installing-plugin/40354/4 "2016-01-28T13:50:28Z")

</div>

May be your `bin/plugin` script has not been updated correctly? Or your elasticsearch installation has been incorrectly updated?

How did you "upgrade"?

---

<div class="post-metadata">

### Author: ![Kishore](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kishore](https://discuss.elastic.co/u/Kishore)
#### Post date: [February 8, 2016, 8:53am UTC](https://discuss.elastic.co/t/exception-while-installing-plugin/40354/5 "2016-02-08T08:53:40Z")

</div>

Yes David, Might be problem with bin/plugin script, can you please suggest what changes do i have to make to the config file after upgradation.

I got stuck here since long back.

---

<div class="post-metadata">

### Author: ![starteleport](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/starteleport/32/11819_2.png) [@starteleport](https://discuss.elastic.co/u/starteleport)
#### Post date: [September 8, 2016, 4:26pm UTC](https://discuss.elastic.co/t/exception-while-installing-plugin/40354/6 "2016-09-08T16:26:29Z")

</div>

Despite this topic is old, I'll post the answer here. Wish someone did that already 🙂

I've had exactly the same problem. The reason was that I upgraded elastic by copying 2.4 into 1.5.2 folder, and ended up having both 1.5 and 2.4 jars in `lib` folder. Remove everything `lib`, `modules` folders and do a fresh copy, this should fix the problem.

---

<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: [July 5, 2017, 10:21pm UTC](https://discuss.elastic.co/t/exception-while-installing-plugin/40354/7 "2017-07-05T22:21:46Z")

</div>


