How to upload ready HEX file using processing or java?

So you're uploading via Bluetooth and hit the reset button when your upload is ready? Why do you need it to be wireless then?