Fixing Java on Ubuntu Hardy.
Java is failing for me while running Ubuntu Hardy. This seems to be because java6 (and java5?) rely on some locking in the XCB library which is not allowed in the new XCB library shipped with hardy. This is fixed in java7, but until that is available as a 32-bit version for us 64-bit people, you can work around the problem by exporting this variable before running your browser:
*export LIBXCB_ALLOW_SLOPPY_LOCK=1*