There is source code of simple class AePlayWave in this article, which can play WAV(AUFF, SND, AU might also be supported) sound files asynchronously (in a separate thread, without interruption of main program). It is possible to use it in console or GUI Java programs for playing user notification sounds. There is also trivial RSS-feed checker, which plays various sounds on rss-feed update.