The easiest way to make a program make a sound is
Toolkit.getDefaultToolkit().beep();If you're not happy with that, search the net for examples of playing MIDI in Java. For example
Loading and...