sudo apt-get autoremove openjdk-7-jre
sudo apt-get purge openjdk*
java -version
No openjdk available now, and then it works.
http://www.cyberciti.biz/faq/howto-installing-oracle-java7-on-ubuntu-linux/
To run 32bit executable file in a 64 bit multi-arch Ubuntu system, you have to add i386
architecture and install libc6:i386
,libncurses5:i386
,libstdc++6:i386
these three library packages.
sudo dpkg --add-architecture i386
Or if you are using Ubuntu v12.04 or below, use this:
echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch
Then:
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo ./adb
sudo apt-get install ia32-libs