Java provides several sound APIs for creating audible alerts. You can use the Java Speech API to tell the user that the task has finished. If you prefer to accomplish this task with sound effects or music, the Java Sound API is a good choice.
However, because Java Speech requires extra distribution files, and because Java Sound requires fairly complex code, you might prefer to use the Audio Clip API.