Guest
Guest

Reputation: 83

Installing Android Studio (Not working)

I'm trying to instal Android Studio for Windows but I get an error: "Could not find main class com/intellij/idea/Main"

I installed the 64 bit jdk and created an environment variable called JAVA_HOME and linked this to my jdk as so: "C:\Program Files\Java\jdk1.7.0_71"

Upvotes: 4

Views: 8733

Answers (4)

Shrey
Shrey

Reputation: 1

Just install java jdk and jre and runtime environment and java 8 update 45 in 64 bit if your computer is 64 bit and 32 bit if your computer is 32bit and then in your environment variable just remove the /bin from it.

Upvotes: 0

Kajal
Kajal

Reputation: 226

Having JAVA_HOME set to point latest JDK version (C:\Program Files\Java\jdk1.7.0_79) will make the Android studio work. Make sure the path is correct. Seems that JDK_HOME is not needed.

Upvotes: 1

B.Moataz
B.Moataz

Reputation: 97

Add a system variable JDK_HOME with value c:\Program Files\Java\jdk1.7.0_71\

Upvotes: 0

Shivakumar ss
Shivakumar ss

Reputation: 663

Are you sure you have installed 64bit ?

Generally for 64bit installation default path will be "c:\Program Files (x86)\Java\jdk1.7.0_71"

Another thing to check if your java installation ( 64bit is compatible ) is fine.

a. open command prompt.

b. cd {your java installation}\jdk1.7.0_71\bin

c. type "java" and "java -version" ( See if both command works )

Upvotes: 1

Related Questions