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
   

posted on 2014-10-31 00:02  ghostli123  阅读(270)  评论(0编辑  收藏  举报

导航