Here is the tutorial: Lesson: Java Applets (The Java™ Tutorials > Deployment)
Type: Posts; User: Norm
Here is the tutorial: Lesson: Java Applets (The Java™ Tutorials > Deployment)
Try rewriting the code to be an applet and see if when executed as an applet it plays a sound.