Mittwoch, 3. Juli 2013

android studio IDE unter ubuntu

Ciao,

want to check out the new IDE for android from google called "android studio" on ubuntu but it won't start because of the OpenJDK?

No problem!

Check this out:

1. Download the latest Oracle Java Platform (JDK) tar.gz (in my case 7u25) from http://www.oracle.com/technetwork/java/javase/downloads/index.html for your system (in my case Linux x64).

2. Unpack the archive
3. Open a terminal (Strg+Alt+t) and type in:
sudo mv jdk1.7.0_25/ /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_25/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_25/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.0_25/bin/javaws 1
sudo update-alternatives --config java
Choose the Oracle JDK
sudo update-alternatives --config javaws
 Choose the Oracle JDK

4. Check with
java -version
in a terminal, if all went well.


PS: If you have problems with ADB, try to install the following:
sudo apt-get install lib32ncurses5 ia32-libs

Keine Kommentare: