# Package org.elasticsearch.action.index does not exist

**URL:** <https://discuss.elastic.co/t/package-org-elasticsearch-action-index-does-not-exist/9237>\
**Category:** Elasticsearch\
**Created:** [October 4, 2012, 8:10am UTC](https://discuss.elastic.co/t/package-org-elasticsearch-action-index-does-not-exist/9237 "2012-10-04T08:10:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![divyanshu\_das](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@divyanshu\_das](https://discuss.elastic.co/u/divyanshu_das)\
**Post date:** [October 4, 2012, 8:10am UTC](https://discuss.elastic.co/t/package-org-elasticsearch-action-index-does-not-exist/9237/1 "2012-10-04T08:10:01Z")

</div>

I am trying to import following packages in my .java file:-

import org.elasticsearch.action.index.IndexResponse;  
import org.elasticsearch.client.Client;  
import org.elasticsearch.client.transport.TransportClient;  
import org.elasticsearch.common.transport.InetSocketTransportAddress;

I am getting error that the above mentioned packages do not exist.

Any help will be appreciated.

--

---

<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:** [October 4, 2012, 8:25am UTC](https://discuss.elastic.co/t/package-org-elasticsearch-action-index-does-not-exist/9237/2 "2012-10-04T08:25:25Z")

</div>

How did you setup your project?  
Do you use maven?  
Is your elasticsearch\*.jar in your classpath?

FYI, org.elasticsearch.client.Client exists in elasticsearch-0.19.8.jar file

David.

Le 4 octobre 2012 à 10:10, divyanshu das [divyanshu.das@gmail.com](mailto:divyanshu.das@gmail.com) a écrit :

> I am trying to import following packages in my .java file:-
> 
> import org.elasticsearch.action.index.IndexResponse;  
> import org.elasticsearch.client.Client;  
> import org.elasticsearch.client.transport.TransportClient;  
> import org.elasticsearch.common.transport.InetSocketTransportAddress;
> 
> I am getting error that the above mentioned packages do not exist.
> 
> Any help will be appreciated.
> 
> --

--  
David Pilato  
[http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

---

<div class="post-metadata">

**Author:** ![divyanshu\_das](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@divyanshu\_das](https://discuss.elastic.co/u/divyanshu_das)\
**Post date:** [October 4, 2012, 9:28am UTC](https://discuss.elastic.co/t/package-org-elasticsearch-action-index-does-not-exist/9237/3 "2012-10-04T09:28:56Z")

</div>

I setup this project on netbeans 7.1.2. and added classpath using  
export  
CLASSPATH=$CLASSPATH:/java/classes:/opt/libraries/elasticsearch-0.19.10/lib/elasticsearch-0.19.10.jar  
I am not using maven.

On Thursday, 4 October 2012 13:55:36 UTC+5:30, David Pilato wrote:

> How did you setup your project?  
> Do you use maven?  
> Is your elasticsearch\*.jar in your classpath?
> 
> FYI, org.elasticsearch.client.Client exists in elasticsearch-0.19.8.jar  
> file
> 
> David.
> 
> Le 4 octobre 2012 à 10:10, divyanshu das \<[divyan...@gmail.com](mailto:divyan...@gmail.com)\<javascript:\>\>  
> a écrit :
> 
> I am trying to import following packages in my .java file:-
> 
> import org.elasticsearch.action.index.IndexResponse;  
> import org.elasticsearch.client.Client;  
> import org.elasticsearch.client.transport.TransportClient;  
> import org.elasticsearch.common.transport.InetSocketTransportAddress;
> 
> I am getting error that the above mentioned packages do not exist.
> 
> Any help will be appreciated.
> 
> --
> 
> --  
> David Pilato  
> [http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
> [http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

---

<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:** [October 4, 2012, 11:38am UTC](https://discuss.elastic.co/t/package-org-elasticsearch-action-index-does-not-exist/9237/4 "2012-10-04T11:38:11Z")

</div>

Did you add all transitive dependencies?  
Not sure it's your concern, but I think you should include them.

David.

Le 4 octobre 2012 à 11:28, divyanshu das [divyanshu.das@gmail.com](mailto:divyanshu.das@gmail.com) a écrit :

> I setup this project on netbeans 7.1.2. and added classpath using  
> export  
> CLASSPATH=$CLASSPATH:/java/classes:/opt/libraries/elasticsearch-0.19.10/lib/elasticsearch-0.19.10.jar  
> I am not using maven.
> 
> On Thursday, 4 October 2012 13:55:36 UTC+5:30, David Pilato wrote:
> 
> > > How did you setup your project?  
> > > Do you use maven?  
> > > Is your elasticsearch\*.jar in your classpath?
> > 
> > FYI, org.elasticsearch.client.Client exists in elasticsearch-0.19.8.jar  
> > file
> > 
> > David.
> > 
> > Le 4 octobre 2012 à 10:10, divyanshu das \< [divyan...@gmail.com](mailto:divyan...@gmail.com)\> a écrit :
> > 
> > ```
> > > > > I am trying to import following packages in my .java file:-
> > 
> > ```
> > 
> > > ```
> > > import org.elasticsearch.action.index.IndexResponse;
> > > import org.elasticsearch.client.Client;
> > > import org.elasticsearch.client.transport.TransportClient;
> > > import org.elasticsearch.common.transport.InetSocketTransportAddress;
> > > 
> > > I am getting error that the above mentioned packages do not exist.
> > > 
> > > Any help will be appreciated.
> > > 
> > > --
> > > 
> > > --
> > > David Pilato
> > > http://www.scrutmydocs.org/ <http://www.scrutmydocs.org/>
> > > http://dev.david.pilato.fr/ <http://dev.david.pilato.fr/>
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > --
> > > 
> > > ```
> > > 
> > > > > >

--  
David Pilato  
[http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

---

<div class="post-metadata">

**Author:** ![divyanshu\_das](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@divyanshu\_das](https://discuss.elastic.co/u/divyanshu_das)\
**Post date:** [October 4, 2012, 6:59pm UTC](https://discuss.elastic.co/t/package-org-elasticsearch-action-index-does-not-exist/9237/5 "2012-10-04T18:59:57Z")

</div>

I added other dependencies and it worked. Thanks a lot.

On Thursday, 4 October 2012 17:08:16 UTC+5:30, David Pilato wrote:

> Did you add all transitive dependencies?  
> Not sure it's your concern, but I think you should include them.
> 
> David.
> 
> Le 4 octobre 2012 à 11:28, divyanshu das \<[divyan...@gmail.com](mailto:divyan...@gmail.com)\<javascript:\>\>  
> a écrit :
> 
> I setup this project on netbeans 7.1.2. and added classpath using  
> export  
> CLASSPATH=$CLASSPATH:/java/classes:/opt/libraries/elasticsearch-0.19.10/lib/elasticsearch-0.19.10.jar
> 
> I am not using maven.
> 
> On Thursday, 4 October 2012 13:55:36 UTC+5:30, David Pilato wrote:
> 
> How did you setup your project?  
> Do you use maven?  
> Is your elasticsearch\*.jar in your classpath?
> 
> FYI, org.elasticsearch.client.Client exists in elasticsearch-0.19.8.jar  
> file
> 
> David.
> 
> Le 4 octobre 2012 à 10:10, divyanshu das \< [divyan...@gmail.com](mailto:divyan...@gmail.com)\> a écrit :
> 
> I am trying to import following packages in my .java file:-
> 
> import org.elasticsearch.action.index.IndexResponse;  
> import org.elasticsearch.client.Client;  
> import org.elasticsearch.client.transport.TransportClient;  
> import org.elasticsearch.common.transport.InetSocketTransportAddress;
> 
> I am getting error that the above mentioned packages do not exist.
> 
> Any help will be appreciated.
> 
> --
> 
> --  
> David Pilato  
> [http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
> [http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> --
> 
> --  
> David Pilato  
> [http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
> [http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

---

<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 6, 2017, 3:10am UTC](https://discuss.elastic.co/t/package-org-elasticsearch-action-index-does-not-exist/9237/6 "2017-07-06T03:10:04Z")

</div>


