# PreBuiltTransportClient cannot be resolved to a type

**URL:** <https://discuss.elastic.co/t/prebuilttransportclient-cannot-be-resolved-to-a-type/70184>\
**Category:** Elasticsearch\
**Created:** [December 29, 2016, 6:36am UTC](https://discuss.elastic.co/t/prebuilttransportclient-cannot-be-resolved-to-a-type/70184 "2016-12-29T06:36:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Earl](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@Earl](https://discuss.elastic.co/u/Earl)\
**Post date:** [December 29, 2016, 6:36am UTC](https://discuss.elastic.co/t/prebuilttransportclient-cannot-be-resolved-to-a-type/70184/1 "2016-12-29T06:36:59Z")

</div>

Hi guys, I'm trying to use elasticsearch in java following the docs, only problem is the PreBuiltTransportClient cannot be found. I've already added all the jars in elasticsearch lib folder to my project. Maybe I'm missing something?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 29, 2016, 9:02am UTC](https://discuss.elastic.co/t/prebuilttransportclient-cannot-be-resolved-to-a-type/70184/2 "2016-12-29T09:02:38Z")

</div>

Hey, you can include the `transport` client dependency from this maven repo [https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/\_maven\_repository.html](https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/_maven_repository.html)

---

<div class="post-metadata">

**Author:** ![Earl](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@Earl](https://discuss.elastic.co/u/Earl)\
**Post date:** [January 3, 2017, 3:28am UTC](https://discuss.elastic.co/t/prebuilttransportclient-cannot-be-resolved-to-a-type/70184/4 "2017-01-03T03:28:10Z")

</div>

Is it possible not to use maven in my project? The project is made with a RAD tool and its structure is kinda hard to convert into maven project. I downloaded the 5.1.1 zip version, It would really save me time with just adding the jars in my build path. 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:** [January 3, 2017, 5:52am UTC](https://discuss.elastic.co/t/prebuilttransportclient-cannot-be-resolved-to-a-type/70184/5 "2017-01-03T05:52:40Z")

</div>

Yes.

> [@Could Not Initialize Class PreBuiltTransportClient](https://discuss.elastic.co/t/could-not-initialize-class-prebuilttransportclient/70097/4):
>
> Not any updated AFAIK. On this forum you can probably find some of them. Ideally, install maven, add just the transport client dependency, then run mvn dependency:tree and you will get that list. HTH

---

<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:** [January 31, 2017, 5:52am UTC](https://discuss.elastic.co/t/prebuilttransportclient-cannot-be-resolved-to-a-type/70184/6 "2017-01-31T05:52:54Z")

</div>

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