communicate arduino wifi or bluetooth

Good morning,
I should have eclipse java software communicate with arduino so that they can communicate via wifi (ESP8266) or bluetooth. How could I do?
Thanks a lot.
Andrew.

Bluetooth is quite easy as compared to Wifi ESP8266, you can use HC-05 bluetooth module and first interface it with your Arduino and test it with some already designed bluetooth App like BlueTerm.

Once successful then you can design your own App to get that bluetooth data in Eclipse.

thank you for the answer. you might have more detailed explanations, excuses but are novice.
thank u very much.