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

  • Thread starter Thread starter Math10
  • Start date Start date
  • Tags Tags
    Android
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting issues with Android Studio not opening on Windows 8 due to a "no JDK found" error. Participants explore the installation and configuration of the Java Development Kit (JDK) and Android SDK, addressing environment variable settings and compatibility concerns.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant reports an error indicating that no JDK was found despite having installed it and configured the JAVA_HOME environment variable.
  • Another participant suggests that the JDK should be installed in the C:\Program Files (x86) folder for compatibility with a 32-bit system.
  • A participant questions how to set the JDK path correctly and whether doing so will resolve the issue.
  • It is pointed out that the JAVA_HOME variable should not include the \bin directory, and it should point to the JDK installation directory instead.
  • Some participants express uncertainty about whether the correct version of the JDK (32-bit) was downloaded.
  • One participant successfully resolves the issue after adjusting the JAVA_HOME variable and expresses gratitude for the assistance received.
  • Further questions arise regarding the ability to compile and run applications in Android Studio and the process of publishing apps on the Android developer account.
  • A later reply challenges a participant's readiness to sell apps without understanding how to use Android Studio effectively.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the exact steps needed to resolve the issue initially, as there are multiple suggestions and some uncertainty regarding the correct JDK version. However, one participant successfully resolves their issue, indicating that at least one approach worked.

Contextual Notes

Limitations include potential confusion over 32-bit versus 64-bit JDK installations and the correct configuration of environment variables, which may vary based on individual setups.

Who May Find This Useful

Users experiencing similar issues with Android Studio on Windows, particularly those configuring JDK and SDK settings, as well as beginners looking to understand the setup process for Android development.

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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: phinds and Medicol

Similar threads

Replies
2
Views
3K
  • · Replies 17 ·
Replies
17
Views
2K
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
6K
Replies
1
Views
2K
Replies
38
Views
5K
  • · Replies 4 ·
Replies
4
Views
20K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K