Remove openjdk in Ubuntu/Configure jdk and running adb in 64-bit Ubuntu

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
   
上一篇:使用Scrapy爬虫框架简单爬取图片并保存本地(妹子图)


下一篇:Xamarin Andro教程搭建Xamarin Androidid开发环境(一)