Unfortunately there is nothing I can really do to help. The alsa-lib is not part of the JDK/VM and I have no idea why it might be failing. The strace output is not showing anything. The error comes from this call in snd_rawmidi_params():
I would try installing the 32 bit version of ubuntu 7.10 If you do I would expect this issue to go away.
I think the problem is that the OS does not allow 32 bit apps to run on a 64 bit ONLY os.. At least
that has been my experience with ubuntu only. SuSE and Redhat don't have this issue nor does Solaris
Let me know if this ends up working after re-install.
I did a little reading . . . mixing 32bit and 64bit code is bad news.
It is quite interesting that the rest of code which uses the audio drivers worked perfectly!
It looks like the 32bit java calls the alsa-lib library which is 64bit. Is this the only place where this happens?
I think I could get round this problem by providing 32bit versions of the libraries. I embarked on creating a 32bit chroot cage
but it started to be hard work.
So I installed 32bit ubuntu and now the midi works fine.