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

Daniel Causebrook picture Daniel Causebrook · Mar 15, 2013 · Viewed 14.6k times · Source

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?

Answer

Reto Höhener picture Reto Höhener · Mar 22, 2015

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.