Normal java program to connect elastic search

We had face a lot of issues in TransportClient ,PreBuiltTransportAddress and InetSocketAddress classes .. These classes are not able add in my project .. So please give me an alternate solution to connect a normal java program in elasticsearch .Suggest me the required version required to connect the elasticsearch using these above mentioned classes.

I think you also asked a similar question at:

Please keep the same discussion in a single place.

1 Like

Hii sir ,Is it possible to run our maven java program in to our windows command prompt?. And how add the maven dependencies in to the elastic search?.

Let's keep the discussion in How to connect Java program in elastic search 7.3.1?.

Thanks