I am gonna C, with lua for scripting events.
(with sdl and opengl)
EDIT : for people using java, it's not too hard to play sound so if you have too much time you can embed sounds.
Of course, sound like everything else has a licence, but you can find free sounds (CC0 and cc-by sounds) on opengameart.
But there is also bfxr (which sadly requires flash).
I don't know if I can post a link here. But you'll find it on google with this word. . Anyway, you can easily create sounds just by using the "random" button. It goes from "grab a coin in mario" (the sound) to "a sliding door opening" or "an alarm" etc.
And the website says: "You have full rights to all sounds made with bfxr, and are free to use them for any purposes, commercial or otherwise."
So, after a hard day of coding, you can still sit doing nothing but listening randomly generated sounds.
I think I remember you can export them to a standard sound format. And it may be worth it to pass them through audacity to clean them a bit.