<code><pre>import java.awt.*;
public class
Test {
public static void main(
String[] s) {
Toolkit.getDefaultToolkit().beep();
}
}</pre></code>
That should do it, I'd think - it does on my system anyway. However my machine at work is set up with no speaker at all - the only way I can hear the beep is if I plug headphones into the audio out in back of the box. Can you hear beeps normally? E.g. go to Start -> Settings -> Control Panel -> Sounds -
you should be able to play a variety of sounds on your system. If you don't hear them, you need to find a way to enable sounds on your system first.
I hope the above was useful; otherwise I have no idea.
