Ubuntu: Running into an error while installing Android Studio


So I am working on installing android studio onto Ubuntu 15.04. I followed the guide here at


to install the JDK and when I type javac and java it seems to point to the correct place. I put the java folder that I unpacked at


and then proceeded to download the latest version of android studio and unpacked it to


I then cded into


and ran ./studio.sh which should have launched the installer. Instead I got

nick@Ubuntu-PC:~/android-studio/bin$ ./studio.sh  Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar  Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=250m; support was removed in 8.0  Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit          at java.awt.Component.<clinit>(Component.java:593)          at com.intellij.idea.Main.showMessage(Main.java:241)          at com.intellij.idea.Main.showMessage(Main.java:228)          at com.intellij.idea.Main.main(Main.java:87)  



I ended up solving this by replacing the version of Java that I had downloaded from 32 bit to 64 bit


I think here is the correct solution for this problem. For you and other people who are facing the same problem.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »