I just came across this bug report, tried wmname, and found that it fixed my issues with running jconsole on amd64 and XMonad.
I suggest you include a mention of wmname and the problem in general in your README.Debian. I've been trying to find a workaround for this issue for weeks. A mention in the readme would have helped... -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org