Unable to run Kibana on my system

Hi David,
Here is the link of the discussion Fail to connect Java api and elasticsearch

My question is, if I will upgrade the elasticsearch version so that I will be able to use Kibana for further manipulation but the upgraded version of the elasticsearch is not compatible with the java code which I have written for CRUD operation. I need to know how do I make java code compatible so that it works with the upgraded version of elasticsearch.

Thanks.