Arduino UNO communicate via wifi/bluetooth with Java sw

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.

You should try bluetooth first as its easy, once you got your hands on it then move to ESP8266. For bluetooth you can use HC-05 or HC-06 and can test it on BlueTerm mobile App, you can find it on play store.