"Accessing" is vague. Do you want to read? write? Both?
Here are two ways I'll mention.
1. Write an ftp client for the "cleint" computer. I beleive java has some framework functions for doing this.
2. Write java RMI client and server to open, read or write, and close a file. Pass a byte array parameter containing each block of data.