Word is an OLE Automation client and server. I know nothing about Java, but
if you can communicate with OLE/ActiveX objects, then you can automate Word.
There is also a DDE interface which still exists in recent versions but is
now unsupported and undocumented.