I just downloaded android studio and I am trying to launch it by running studio.sh file, I am getting this error
Error: Could not find or load main class com.intellij.idea.Main I have looked it up on so and other sites and they all suggest to set the path correctly,
I have installed java and set up both Java_Home and PATH
JAVA_HOME =/usr/local/java/jdk1.7.0_40
PATH= /usr/local/java/jdk1.7.0_40/bin(part of the total path variable)
here is the output of java-version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
Can anyone point out what I am doing wrong?
/opt/android-studio
with the correct path:sudo chmod g+r,o+r /opt/android-studio/lib/bootstrap.jar
And give me a ping with @A.B. – A.B. Jun 01 '15 at 18:06bootstrap.jar
?! Which version is installed? And no, it doesn't have to be at/opt/android-studio
– A.B. Jun 01 '15 at 18:31chown -R $USER:$USER ~/<your_android_studio_folder>/
. Don't forget the trailing/
. – A.B. Jun 01 '15 at 18:33studio.sh
command. – A.B. Jun 01 '15 at 18:43