remove OpenJDK
$ sudo apt-get purge openjdk*
$ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java6-installer
$ sudo apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo apt-get install gcc-4.4 g++-4.4-multilib g++-4.4 gcc-4.4-multilib $ sudo rm /usr/bin/gcc $ sudo ln -s gcc-4.4 gcc