Troubleshooting: Android Studio Not Opening on Windows 8 - No JDK Found

  • Thread starter Thread starter Math10
  • Start date Start date
  • Tags Tags
    Android
AI Thread Summary
The discussion revolves around troubleshooting issues with Android Studio on a Windows 8 system, specifically regarding JDK installation and environment variable configuration. The user initially encounters an error stating that no JDK was found, despite having installed it and set the JAVA_HOME variable. It is clarified that JAVA_HOME should not point to the bin directory but rather to the main JDK directory. After correcting this, the user successfully resolves the issue and proceeds to download the Android SDK tools. The conversation then shifts to inquiries about developing and uploading applications using Android Studio, with some participants emphasizing the need for users to learn the basics of the platform before seeking help.
Math10
Messages
301
Reaction score
0
I have installed the Android Studio but whenever I open it, it says no JDK was found and it told me to install a 32-bit JDK. I'm using Windows 8. But I already have installed JDK and created a path in Environment Variables. In the variable name, I put JAVA_HOME and in the variable value, I put C:\Program Files\Java\jdk1.8.0_40\bin but it still told me to install a 32-bit JDK. What's wrong?
 
Technology news on Phys.org
Perhaps you should be putting it under the C:\Program Files (x86) folder, since it is 32 bit.
 
How do I put it there? If I put it there, will it work?
 
If you installed a 32 bit jdk, it should already be there. Right now you have JAVA_HOME pointed at the 64 bit jdk. I bet that if you point JAVA_HOME to your 32 bit installation, (which is what android studio apparently needs), then it will work.
 
So what do I do now?
 
Math10 said:
So what do I do now?
Uh, try starting android studio?
 
You might also want to check if you downloaded the Android SDK and that you have pointed the ANDROID_HOME variable to C:\Program Files (x86)\Android\android-sdk\. For my setup I have JAVA_HOME pointed to C:\Program Files\Java\jdk[VERSION NUMBER], and ANDROID_HOME set up as above.
 
So I changed my variable value for JAVA_HOME and I set up the ANDROID_HOME variable with the above variable value but it says "The environment variable JAVA_HOME with the value of ... doesn't point to a valid JVM installation.
 
My PC's operating system is 32 bit, x64-based processor when I checked the computer's properties in the start menu.
 
  • #10
Math10 said:
I put JAVA_HOME and in the variable value, I put C:\Program Files\Java\jdk1.8.0_40\bin
JAVA_HOME shouldn't point at the bin directory. Set it to C:\Program Files\Java\jdk1.8.0_40 instead. Only your PATH variable should point at the bin directory.
 
  • Like
Likes Math10 and TheDemx27
  • #11
I did as you said but it still won't work, it still says the same thing.
 
  • #12
Are you sure you downloaded the 32-bit version of JDK?
 
  • #13
I'm not sure. What should I do now?
 
  • #14
Math10 said:
I did as you said but it still won't work, it still says the same thing.
The same thing as your first post (install a JRE) or post 8 (JVM isn't valid)?
 
  • Like
Likes Math10
  • #15
The environment variable JAVA_HOME with the value C:\Program Files\Java\jdk1.8.0_40\bin doesn't point to a valid JVM installation.
 
  • #16
Math10 said:
The environment variable JAVA_HOME with the value C:\Program Files\Java\jdk1.8.0_40\bin doesn't point to a valid JVM installation.
Your JAVA_HOME value does NOT have the \bin part and it's still telling you that it's not a valid JVM? Have you verified that it's there and hasn't been moved? Also, watch carefully for copying mistakes like missing or extra spaces. I would copy your JAVA_HOME value and enter it directly into your Windows Explorer to make sure that it's correct.
 
  • Like
Likes Math10
  • #17
Okay, you know what? It worked! Now I'm waiting for the wizard for downloading Android SDK tools! Thank you so much for the help! I really appreciated it!
 
  • #18
Math10 said:
Okay, you know what? It worked! Now I'm waiting for the wizard for downloading Android SDK tools! Thank you so much for the help! I really appreciated it!
Excellent! :w
 
  • Like
Likes Math10
  • #19
But can you compile and run an android application in android studio?
 
  • #20
Math10 said:
But can you compile and run an android application in android studio?
I assume that you can but I haven't used it before.
 
  • #21
So after you developed an android app in android studio, can you upload the app in the android developer account process? And how do you get your revenue (income)? Assuming a free app with in-app purchases.
 
  • #22
I just installed the Android Studio and want to write my Java application in it. But when I opened the android studio and clicked on start a new android studio project, what should I put for the application name and the company domain and the project location? Let's say that I'm about to write a Java application and want to save it as ShowLong.java, what should the application name be? And can android studio compile and run my Java application?
 
  • #23
If you have no idea how to use this, why do you think people would buy anything from you? We are not here to teach you. Learn this, then if you have a specific question, come back and ask that specific question.
 
  • Like
Likes phinds and Medicol
Back
Top