When trying to install Netbeans 6.1 on my Ubuntu workstation the installation window would freeze. After some searching I first tried this:
export LIBXCB_ALLOW_SLOPPY_LOCK=true
But that didn't solve my problem; then I decided to turn off the Visual Effects (System > Preferences > Appearance > Visual Effects => none) and it installed just fine.
Also note that you're using the right java version, the official from sun:
nuil@Solaris:~$ java -version java version "1.6.0_06" Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)
otherwise install the sun version:
sudo apt-get install sun-java6-jdk sudo update-java-alternatives -s java-6-sun
Received my Yubikeys from 