I have removed and reinstalled openjdk from yum, and I still get the same error.
I don't know much about java, but it looks like SE is the development kit of my failed java 7 install.
So I have removed everything and installed Java SE 7 with jdk-7u1-linux-x64.rpm from oracle website.
I still get that error, but now some java apps work without sound and with the following error:
open /dev/[sound/]dsp: No such file or directory
I cannot find any solution by googling this.
Any help is appreciated