Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Toolkit.getDefaultToolkit().beep() not work in Windows?

Tags:

java

javasound

When I try to get a beep by using Toolkit.getDefaultToolkit().beep(), it does not seem to work on any of my Windows computers. I also know someone who has the same problem, but they say it works on other OS's. Does anyone know why?

like image 279
Daniel Causebrook Avatar asked Mar 15 '13 20:03

Daniel Causebrook


1 Answers

For me, the problem was that I had "No Sounds" configured (Win7 Pro). After changing this back to "Windows Default", I was able to hear the beep (actually a 'ding') - also when started from within eclipse.

like image 121
Reto Höhener Avatar answered Sep 20 '22 12:09

Reto Höhener