I just installed Android Studio, but I can only start it with root permissions: sudo ./studio.sh
otherwise it fails with Error: Could not find or load main class com.intellij.idea.Main
I am not sure where to start investigating the file permissions, any ideas?
Some info:
d@d-Aspire-M5-581TG /opt/android-studio/bin $ cat /etc/*-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.1
DISTRIB_CODENAME=rebecca
DISTRIB_DESCRIPTION="Linux Mint 17.1 Rebecca"
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
...
d@d-Aspire-M5-581TG ~ $ java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
Update: I created a desktop bookmark and with that it launches ok, so it's not an issue anymore. Yet, It would be great to know why it doesn't work when I try it from the terminal.
Best Answer
After starting Android studio with
sudo
, select Tools - Create Desktop Entry.This will create an icon for Android studio and if you do a search in the dash, it will pop up in-between the other applications.