Android SDK deosn't think JDK is installed? - Windows 7 - android

On Windows 7 I have installed the Java SE JDK, then rebooted.
When I then run the Android SDK installer, there is a warning that the JDK is not installed.

I found that if I press the Back button on the Android SDK installer, then press the Next button again, it works!

Did you install 32-bit version or 64-bit version?
Check out here for Windows 7 / Android Tools setup :
https://stackoverflow.com/questions/4588548/help-jdk-not-detected-problem-during-android-sdk-tools-setup
Also, check out your PATH environment variables to confirm JDK is setup and referenced!
And as commented below, also check out JAVA_HOME variable.

i had the same problem, tried all the solutions but nothing worked. The problem is with Windows 7 installed is 64 bit and all the softwares that you are installing should be 32 bit.
Android SDK itself is 32 bit and it identifies only 32 bit JDK. So install following softwares.
JDK (32 bit)
Android SDK (while installing SDK, make sure install it in directory other than "C:\Program Files (x86)", more probably in other drive or in the directory where Eclipse is extracted)
Eclipse (32 bit) and finally ADT.
i tried it and all works fine.

You Should Create an Environment Variable to Point to Your java Directory.
Go to My Computer > right click on a free space > choose properties > in the left column choose "Advance System Setting" > Go to Advance tab > push Environment variable button > in System Variable click on New :
Variable name : JAVA_HOME
Variable value: C:\Program Files\Java\jdk1.7.0_06
You should be careful about path if you add path like this "C:\Program Files\Java\jdk1.7.0_06\bin" or this one "C:\Program Files\Java" it will not work.

When you downloaded sdk, running via browser's downloaded files section right? application can't detect java in this state. if you run it via directly its own folder, it will find sdk. simple

My is configuration Windows 7 64-bit.
I didn't want to uninstall 64-bit jdk and the other suggestions weren't working. So I just downloaded the 32-bit and re-ran the windows installer.
Voila, it works and doesn't take the 32-bit either. It takes the 64-bit higher version instead.
I feel it just feels safe with the presence of the 32-bit jdk :P

Related

Why I can't install Android Studio?

Error Details HERE !!!
What is this ??
I've already set Environment Variable,Installed JDK, even restarted laptop.but still not installing !
SYSTEM Details
Android Studio Version :: android-studio-bundle-135.1641136
Operating System :: Windows 7 64-bit
Laptop : Lenovo g500
It's pretty clear that you either don't have Java JDK installed (maybe you installed only JRE) or you have a wrong version (might be an old version). Install latest JDK from Oracle and try again. Make sure you set the JAVA_HOME correctly. The Oracle installer doesn't do that AFAIK.

Android SDK manager doesn't open

I have installed SDK and eclipse, but SDK manager and avd manager doesn't open, a black screen flashes for a Milli seconds and closes. Here is what I have tried :-
( NB - I am using a 32-bit Windows 8 that runs on x86 processor )
Tried to define environment variables to a path -
JAVA_HOME C:\Program Files\Java\jdk1.7.0_21\bin
JAVA_JRE C:\Program Files\Java\jre7\bin
But still, it doesn't work.
On trying to run android.bat, I get a window that says..
ERROR: No suitable Java found. In order to properly use the Android Developer
Tools, you need a suitable version of Java installed on your system. We
recommend that you install the JDK version of JavaSE, available here:
http://java.sun.com/javase/downloads/
You can find the complete Android SDK requirements here:
http://developer.android.com/sdk/requirements.html
Replaced JRE 1.7 with JRE 1.6. It also didn't help
If you already have installed JRE/JDK, then add JRE/JDK to Environment variables > PATH:
C:\Program Files\Java\jre7\bin
Or
C:\Program Files\Java\jdk1.7.0_15\bin
Please note that the actual JDK version installed on your machine may differ.
Check your PATH system, and check if you have a java.exe file in C:\Windows\system32; remove it (make a backup) and try to reinstall your android sdk. I think you have another virtual java machine running in your pc.
For check your current java machine: open a console and type "java -version"
If you would like to try the new Android Studio (released under the 2013 Google I/O) it's most suitable that start from scratch about configuring environment.
https://developer.android.com/sdk/installing/studio.html

Android SDK says I don't have a JDK, don't I?

I keep getting the message that I should have the JDK installed to be able to install Android SDK, it says a JRE is not enough. The thing is that I have a JDK. These are my environment variables:
CLASSPATH: C:\Program Files\Java\jdk1.7.0\lib
JAVA_HOME: C:\Program Files\Java\jdk1.7.0
JRE_HOME: C:\Program Files\Java\jdk1.7.0\jre
PATH: C:\Program Files\Java\jdk1.7.0\bin
although to my surprise, cmd shows this:
C:\Users\Thiago>java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)
what's going on?
try to install all 32 bit softwares only. It solved my problem.
Android SDK itself is 32 bit and it identifies only 32 bit JDK. So install following softwares.
JDK (32 bit)
Android SDK (while installing SDK, make sure install it in directory other than "C:\Program Files (x86)", more probably in other drive or in the directory where Eclipse is extracted)
Eclipse (32 bit) and finally ADT.
i tried it and all works fine.
Your computer will always search through the PATH env variable in order, so if you also have the location to your JRE before the location to the JDK in your PATH environment variable, then it will always go with the JRE. Swap their locations around and it should work.
There is a strange issue that may occur while installing the Android SDK on some machines. This may be what you're running into. Here is the solution to it:
Android SDK installation doesn't find JDK

Has anyone been successful in using 64-bit Eclipse for Android 2.3 dev on 64-bit Windows 7?

Has anyone been successful in using 64-bit Eclipse for Android 2.3 dev on 64-bit Windows 7?
Please answer positively only if, when you invoke the emulator via Eclipse's Run (Ctrl+F11), your app-to-be-debugged's APK is installed automatically onto the Android emulator and you are running this same exact configuration:
Windows 7 Ultimate 64-bit.
JDK 64-bit (jdk-6u23-windows-x64.exe installed.)
JDK 32-bit (jdk-6u23-windows-i586.exe installed.)
Eclipse Classic 3.6 64-bit (eclipse-SDK-3.6.1-win32-x86_64.zip)
Android 2.3 SDK Starter Package
If you are able to fully use 64-bit Eclipse for Android 2.3 dev on 64-bit Windows 7, please describe the steps you performed to make this happen.
As of now, the following steps did NOT work for me:
install the 64-bit JDK
install the 32-bit JDK
unzip android-sdk_r08-windows.zip to
C:\android-sdk-windows
append C:\android-sdk-windows\tools
to %PATH% in System env vars.
Run C:\android-sdk-windows\tools>android.bat
Install ADT Plugin via Eclipse
Create "Android 2.3 - API Level 9" virtual device via Eclipse
Window > Preferences > Java > Installed JREs: [Search...]
I received 3 great answers here although none of those described configurations really match the original configuration described in the question, but...
The last 2 answers (especially the one from #Nicholi) prompted to spend the time on yet-another-round of pulling my hair in an attempt to find a solution to an unexplainable problem.
And I found it! My own configuration now works on 64-bit Windows 7 and so the short answer is: Yes.
Here are the detailed steps, in order, that worked for me (cut & keep):
Step 0:
***********************************************
****** UNINSTALL THE COMODO FIREWALL !!! ******
***********************************************
Comodo Firewall, AKA CIS, turned out to be the sole problem leading to the time wasted between December 2010 (when I posted this request for help) and February 2011 (When I finally nailed the problem down). Note: Disabling the firewall doesn't help, only complete uninstall really works.
Step 1 (JDK 6 64-bit):
Create %JAVA_HOME%: C:\Program Files\Java\jdk1.6.0_23
Append to %PATH%: C:\Program Files\Java\jdk1.6.0_23\bin
Run: jdk-6u23-windows-x64.exe
Note: It is not necessary to install the JDK into C:\Java. Sticking with the Windows Folders conventions is preferred because it helps you remember which package is 64-bit and which is (still) 32-bit.
Step 2 (Eclipse Classic 64-bit):
Unzip eclipse-SDK-3.6.1-win32-x86_64.zip into C:\eclipse
Note: It is critical to have the eclipse directory directly under C:\ and not under "C:\Program Files" (otherwise, ADT Plugin install will incur missing packages problems).
Step 3 (SDK Starter Package AKA "Android SDK"):
Create %ANDROID_HOME%: C:\android-sdk-windows
Append to %PATH%: C:\android-sdk-windows\platform-tools
Run installer_r09-windows.exe and install to C:\android-sdk-windows
> Check 'Start SDK Manager'
> All are selected. Accept. Install. Yes, restart ADB.
Step 4 (ADT Plugin for Eclipse):
Help > Install New Software > Add...
Name: ADT Plugin
Location: https://dl-ssl.google.com/android/eclipse/
Check "Contact all update sites during install to find required software'!!!
Work with: All available sites
+ Developer Tools
+ Android DDMS 9.0.1.v201101191456-93220
+ Android Development Tools 9.0.1.v201101191456-93220
+ Android Hierarchy Viewer 9.0.1.v201101191456-93220
> Next
> Next
> Finish
> Restart Eclipse
Step 5 (Android Virtual Device):
Open Eclipse. Then:
Window > Android SDK and AVD Manager
> Virtual Devices [New...]
Name: AVD23
Target: Android 2.3.1 - API Level 9
SD Card: 1024 MiB
[Create AVD]
I myself have never used the Eclipse "classic" version, I always get the Java version as another poster mentioned (the 64bit version). Personally no idea what the difference is. I am guessing this is where your problem may stem from?
It works perfectly on Windows 7 x64 (Home Premium here), 64-bit and 32-bit JDKs installed, latest Android SDK and ADT plugin. I'm not sure which JRE is actually used, never bothered to find out (wouldn't be surprised if its 32bit). Also the JDK versions I used (quite awhile back) were 6u21, since then my 32bit version has updated to 6u23 but 64bit has not. Couldn't tell you the exact order as I don't recall (it was quite awhile back). Likely I installed the JDKs first, then extracted Eclipse, install/downloaded Android SDK, then installed ADT plugin.
Has always started up emulator fine, installs APKs, and debugs as expected. I also do alot of dev'ing on my Nexus One.
One recommendation I have seen alot is NEVER install any of the tools to the typical "C:\Program Files" because of spaces in filepaths. Why this is still a problem in 2011 I will not know, but putting Eclipse, JDK, and the Android SDK all straight off the root of some drive is likely to lead to significantly less issues apparently.
Edit: I uninstalled my current versions of Java, and removed eclipse/android sdk to startover
Installed jdk-6u23-windows-x64.exe to C:\Java
Added JAVA_HOME env variable pointing to C:\Java\jdk1.6.0_23
Added Java bin dir to PATH env var ;C:\Java\jdk1.6.0_23\bin
Extracted eclipse-java-helios-SR1-win32-x86_64.zip to C:\eclipse
Installed installer_r09-windows.exe to C:\android-sdk-windows
Downloaded necessary SDK versions
Installed ADT plugin through Eclipse interface, point to android SDK dir
Added ANDROID_HOME env variable pointing to C:\android-sdk-windows
Added Android platform-tools dir to PATH env var ;C:\android-sdk-windows\platform-tools
After this everything seems to work fine (except for DDMS in Eclipse, still fidgeting with that). And that is without the 32bit version of Java installed (neither JRE or JDK). Only 64bit is installed.
Is the solution to use eclipse-java-helios-SR1-win32 instead of eclipse-java-helios-SR1-win32-x86_64 when using a Windows 7 64 bit OS on a 64bit machine?
Hope this helps, if anyone else is having this issue.
Following configuration works perfectly fine for me.
Windows 7 Professional 64 bit
Eclipse Helios 3.6.1 64 bit (JavaEE)
JDK 6u23 64 bit
Android SDK 2.3
ADT 8.01
My sequence of steps:
Install 64 bit JDK. Update PATH and JAVA_HOME env variables.
Uncompress Android SDK and get all the required versions 7, 8 and 9. Add ANDROID_HOME env variable.
Uncompress Eclipse 64 bit and install the ADT plugin and then configure the Android SDK in Preferences page of Eclipse.
Thanks for the collective wisdom which has enabled me to restore the ADT functionality within an hour of reading this page. I had to fix one more item, eclipse refused to compile my android application and complained about all sorts of nonsensical problems e.g. unable to find {relative-path}\R.java even though I could view it in eclipse and from the command line; and build path problems.
I discovered it was using a 32-bit JRE (Window->Preferences->Java->Installed JREs) of
C:\Program Files (x86)\Java\jre6
I added an entry for the 64-bit JRE
C:\Program Files\Java\jre6
and selected it as the default JRE.
My android project then built cleanly again :)
I'm still troubleshooting it, as my configuration is totally messed up - many versions of java and mix of 32/64 bit, so I'm starting from scratch.
I noticed one thing, which might be solution to this problem. I found 3 java exe files in my windows\system32 folder. That's why, when u run 'java -version' from the command line, you get java 7! Even when you amend system %PATH% to have java 6 there, it won't work until you remove executables from system32.

Android SDK install: Java SE development Kit (JDK) not found [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Android SDK installation doesn't find JDK
I have installed Java runtime 6 to C:\src\libraries\jre6.
I installed Java JDK to C:\src\libraries\javasdk.
My %PATH% is set to:
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32
\WindowsPowerShell\v1.0;C:\src\libraries\javasdk\bin;C:\src\libraries\javasdk;C:
\src\libraries\javasdk\jdk\bin;C:\src\libraries\javasdk\jdk;C:\src\libraries\jav
asdk;
When I run the Android SDK installer I get the error:
"Java SE development Kit (JDK) not found"
I'm at a loss as to what the Android SDK cannot really find.
Windows 7 32 bit has the same behaviour as Windows XP SP3. Hit BACK and then NEXT again and you're able to install the Android SDK.
The answer is bang on, but some clarification that might help some not familiar with registry editing (like me).
Run regedit.
Find [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
Right click on the key and click export, then save the file to the desktop.
Right click then click edit.
Add Wow6432Node to the path of each key in the file. See above (#Rog_enk) for an example. Save.
Back in regedit, click File->Import and select the file from above. Done.
Try the SDK installer again.
On Windows 7 x64 the Android SDK Installer is looking for the JDK in the HKLM\SOFTWARE\Wow6432Node\JavaSoft registry branch.
But in reality the JavaSoft entry was placed in HKLM\SOFTWARE\JavaSoft. I copied all JavaSoft branch to the path search, and then the installer found the JDK.
Just press back, then next and it will find it. Android SDK installation doesn't find JDK
Windows 7 64 bit - same behaviour as windows XP SP3 and Windows 7 32 bit: Just set JAVA_HOME = C:\Program Files\Java\jdk1.6.0_14 or whatever your actual path, start SDK, and after you'll get error - hit BACK and than NEXT again and you're able to install the Andriod SDK
It seems that creating and setting my environment variable, CLASSPATH, to C:\src\libraries\jre6\lib fixed my problem. I downloaded the Android SDK zip file, put it where I wanted it. I was able to proceed from there.

Categories

Resources