Certainly possible. Perhaps build a list of song titles on the server, to send back to the client. When the client selects a title, send it back to the server and have the server run an OS command to play the song on the server. Something like this
A word of caution however, be sure to sanitize and verify that the string of text you are passing to the java server's OS doesn't contain malicious content. If your java service is accessible from the Internet, chances are good someone will try and crack into it.