You can connect Java via USB / serial, but you might need to give up any hope of "Write Once Run Anywhere". I wrote a little helper in Java for a bad oscilloscope I bought once here:
gds2062 -...