# java.lang.NoSuchMethodError:

**URL:** https://discuss.elastic.co/t/java-lang-nosuchmethoderror/118445
**Category:** Elasticsearch
**Created:** [February 5, 2018, 12:41pm UTC](https://discuss.elastic.co/t/java-lang-nosuchmethoderror/118445 "2018-02-05T12:41:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aravind\_apalya](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aravind\_apalya](https://discuss.elastic.co/u/aravind_apalya)
#### Post date: [February 5, 2018, 12:41pm UTC](https://discuss.elastic.co/t/java-lang-nosuchmethoderror/118445/1 "2018-02-05T12:41:24Z")

</div>

Hi Team,

I have upgraded my elastic search java API's to v6.1.1 from v0.90.5  
Everything compiled fine and have deployed in tomcat server  
While starting the server it's throwing following error.

**java.lang.NoSuchMethodError: org.elasticsearch.common.settings.Settings.builder()Lorg/elasticsearch/common/settings/Settings$Builder;**  
**at tv.myplex.services.search.base.NodeIndexer.init(NodeIndexer.java:58).**

In my class 58 line is:

```
Settings settings = Settings.builder().loadFromSource(source,XContentType.YAML).build();
client = new Node(settings).client();

```

which is equalent to

```
Settings settings = Settings.builder().put("cluster.name", "elasticsearch").build();
client = new Node(settings).client();

```

Can anyone please help me out to fix this issue.

Thank you.

---

<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: [February 5, 2018, 1:04pm UTC](https://discuss.elastic.co/t/java-lang-nosuchmethoderror/118445/2 "2018-02-05T13:04:47Z")

</div>

Not sure but we don't support embedded nodes anymore.  
Better to use the REST client

---

<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: [March 5, 2018, 1:05pm UTC](https://discuss.elastic.co/t/java-lang-nosuchmethoderror/118445/3 "2018-03-05T13:05:17Z")

</div>

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