Installing Android SDKr18, SDK will not detect the JDK - android

![enter image description here][1]Thanks for taking the time to read my question.
This is not another back, then next problem.
I have installed eclipse classic and jdk-7u3-windows-x64, the problem is when I go to install the android SDK, I get this error:
http://i.stack.imgur.com/V9VIY.jpg
I have been searching the net all night, one solution seems to be for an earlier version of the Android SDK is to click back then next, I have tried this to no avail.
I have also set up a environment variable, this didn't work either.
I have checked that java has definitely been installed, I have run and installed all software as admin. Still I get the same message.
So can anyone out there help me with this issue?
Big thanks in advance for any help!
Nick.

I had similar problem with Windows 7 - 64 bit machine. The installation of the Andriod SDk wil l hang on the screen where it is trying to locate JDK. I had both 64 and 32 bit JDK installed. JAVA_HOME was set to correct JDK (32) bit to C:\Java\jdk1.6.0_13 but the installer will get stuck in a loop and will never recover from the screen.
It is silly really but what I had to do was, to reinstall jdk-6 32 bit in a different directory this time (C:\Program Files (x86)\Java\jdk1.6.0_31) , change the JAVA_HOME to C:\Program Files (x86)\Java\jdk1.6.0_31 and reinstall SDK.
Very strangely it didn't pick up new installation of JDK at C:\Program Files (x86)\Java\jdk1.6.0_31 as set in the JAVA_HOME, instead it picked up my old installation from C:\Java\jdk1.6.0_13\
Someone really need to check their codes at Google!!
But sorted , I am happy

I think all the installed and uninstalling of java caused the above error. Anyway restored my computer back to a certain point and installed the jdk 6 32 instead to start with. The sdk found it straight away.

Related

android.bat Opens SDK Manager, SDK Manager.exe does not

I've been trying to fix this for the last 48 hours, and it is driving me insane.
My SDK Manager.exe flashes a cmd screen and closes in less than a second.
After much searching, I finally managed to get my SDK Manager to open after adjusting android.bat, and running it as administrator.
But, SDK Manager.exe was not able to find android.bat so I copied it into the android-sdk folder.
SDK Manager.exe is now able to find android.bat, but it is still briefly flashing cmd and then closing.
My PATH variable has my jdk java.exe directory as the first entry, and I have restarted and reinstalled several times.
What is causing this? Why am I able to open the manager from android.bat, but not from the executable?
I am trying to configure Eclipse to use the SDK Manager, but obviously I cannot because the executable refuses to open.
Eclipse is also telling me that adb.exe is missing, and upon checking platforms I have confirmed this. I assume adb.exe will be installed from the SDK Manager?
Edit: After thinking about it, I think the issue may be with the permissions of android.bat. It must be run as administrator in order to work, otherwise if opened regularly it will say "Access is denied".
Is it possible to change this? Looking in the properties of android.bat, I have adjusted my account to have full control. This has not affected the issue, though.
I've experienced this on some machines, but not others. It's a strange problem and I believe it has to do with a path problem in one of the android files (android.bat?).
Why this happens on some installs and not others I have yet to figure out. I've read everything I could find both here and on the interweb, tried many different solutions, including installing another version of JDK 6 and 7, modifying the path variable, adding a JAVA_HOME variable, etc. and none worked.
This worked for me in Windows 7...
1) Add a copy of the "SDK Manager.exe" file INSIDE the SDK folder (so it's next to the tools, platforms, et. al folders) and then run it. You will still see the command window "flash" for a second and then disappear, but be patient and the SDK manager WILL show up.
2) Create a shortcut to this "inside" copy of the SDK Manager.exe and move it where ever you want; it now knows where to go to find the files and works every time. I have a copy on my desktop, but it doesn't matter where you put it.
Note: There's still a problem somewhere, and it may have to do with Google, but it seems to happen to some people regardless of what/when they do an install, while others have no issues at all.
This may not be the answer we need to get Google to fix it, but it works without uninstalling/reinstalling java or the SDK, modifying/adding variables, modifying android.bat, changing your path, running as admin, etc., and the best part is it's easy. It's too bad many of us have wasted hours of time on trying to fix it.
Good Luck!
Note: I added the comment below about x64 machines. It's strange, but when we tried it on one x64 (OS/ADT) machine and it didn't work. I just tried a fresh install of Java 7 x64, and ADT x64 on a machine where it was working with a 32bit install (meaning I now have both 32bit and 64bit installs of Java and ADT on the same machine) and again, it works fine. A brief flash, it goes away, and then the SDK manager opens as expected. The mystery continues. :)
I had the same problem when I updated my android SDK tools to 23.0.2. Spent a lot of time (around 6 hours) messing around trying to find a fix... and I found it, but still not sure how it all works.
It has to do with android.bat file in the tools folder of your android SDK directory, in the lines:
set java_exe=
call lib\find_java.bat
I modified the lines into the following values:
set java_exe=pathwhereyoufindjavaexe
REM call lib\find_java.bat
Basically, two things are done:
Set your java_exe variable to your Java.exe path
Delete, or comment the line: "call lib\find_java.bat"
I commented second line so it DOESN'T re-set my java_exe variable through find_java.bat, and manually set my java_exe variable to where my java.exe file is. If you don't know where (or forgot where) your java.exe is, try using windows search for it.
My path for java.exe is different from the one found using find_java.bat.
My Actual path:
U:\PortableApps\CommonFiles\Java\bin\Java.exe
The path find_java.bat sets it to:
C:\Windows\systems32\java.exe
NOTE:
I figured what path "call lib\find_java.bat" sets the java_exe variable through adding the following command below the line itself:
echo %java_exe%
pause
I'm not sure if this is some sort of permission or access error, or this solution worked only for me since my java JDK is on USB device or such. Well, if anyone else bump into this problem, give my solution a try and see if it works for you guys as well.
I had the same issue!
I had installed the ADT bundle 64-bit, so I downloaded Java 64-bit.
I messed around with paths and things, but the thing that fixed it in the end was installed Java 32-bit.
The easy fix is to install both versions. You can download them manually here.
Good luck!
I don't know if it will solve your problem but make sure you have installed jre and jdk and android sdk for the same bit system (I mean that all three are for 32 or 64 bit systems).
I once had an android problem based on this!
If you use them for one system try to reinstall them.
I had a similar problem and it worked after changing all versions to 64 bit.
Hope I could help you.
When you 'Run as administrator' the current directory gets changed because you are impersonating another user. To prove this put the following line at the top of your bat file:
echo.CD=%CD% & pause
Then execute your bat file as a normal user and observe result.
Now execute bat file via 'Run as administrator' and note that CD has been changed to C:\Windows\system32 (typical).
The fix is simple. Put the following line in your bat file to restore the current directory:
pushd %~dp0
It needs to be before you reference any files/folders. I typically put that line near the top of all bat files that may be 'Run as administrator'. It does not hurt anything if used for older (XP) OS's.
I had same problem with Windows 8.1 64-bit and JDK8. I uninstalled JDK8x64 and installed JDK8i586 and now it works like a charm.

Windows 8 - Running Eclipse (Java VM not found)

I just downloaded the Android Developer Tools Bundle. I started following the setup instructions and gotten as far as extracting the files to new location ("Development") as it says. I tried running the Eclipse app as instructed, yet a window popped up saying;
A Java Runtime Environment (JRT) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following location:
C:.........\Development\adt-bundle-windows\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH"
I tried compatibility trouble-shooter which can not detect a thing, whether it was the right action to take. I looked across stackoverflow and tried a few of the suggestions with no change. I looked at windows site and android site and nothing seems to make any difference, good or bad (well, I hope no bad).
I literally got this laptop 10 days ago and all programs are brand new, no updates or reinstalls etc.
I am running a Windows 8 with 64bit, which is what I selected at download of ADT Bundle.
I had downloaded the wrong java file.
To fix I went to;
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html
and accepted terms then downloaded the appropriate file which I had to signup for registration;
Windows x64 90 MB jdk-7u7-windows-x64.exe
It worked without changing any PATH.
Thank you..
At first download jdk(java development kit) and install it. the jdk includes the jre(java runtime environment). You can also install the jre alone.
Thank It worked. Just add C:\Program Files\Java\jdk1.7.0\bin in your PATH
Control Panel
1. System
2. Advance Setting
3. Advance
4. Environment Variables
5. System variable Group
6. look For PATH in the list
7. Edit
8. Add path of your C:\Program Files\Java\jdk1.7.0\bin jdk installation and save
Remember to separate value with ;
You must download a JDK or JRE first from java.oracle.com, and add your installation folder in the PATH system avaiable.(Control Panel --System--Advance Settings --advance -- enviroment)
Go to the following page and download the executable on java.com
The executable installs the latest JAVA virtual machine.
NOTE: for Windows only
The installer knows your current version of windows.

Problem installing Android SDK

I downloaded JDK & Android SDK.
I installed JDK, but when I'm trying to install the Android SDK the installer claims that JDK is not installed.
What can I do?
Edit: OS is Win7 32bit
Hit BACK and then NEXT again and you're able to install the Android SDK.
Doodle asks an important question, I've run into similar problems when I first upgraded to Win7 64 bit, feeling saucy I put 64 bit Java on, only to find that FF 3.x, which was 32 bit couldn't use it, and I also had problems with Eclipse. You can run both 32 and 64 bit JRE's and JDK's side by side with no problem, so that may fix it. Also, make sure that your JAVA_HOME is set correctly, and that the JDK is properly pointed to by Eclipse in the Window>>Preferences>>Java>>Installed JREs. I know it says JREs, but trust me, everything about Eclipse works better when it points to a JDK and runs from a JDK.
YMMV
I had the same problem in windows 7, hitting back and next didn't work for me,
I added JAVA_HOME variable pointing to the jdk folder and added the %JAVA_HOME%\bin to Path environment.

Installing Android SDK on Windows 7 64-bit: "JDK not found"? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Android SDK installation doesn't find JDK
I am unable to install the android SDK. It requests that I have the JDK, which I do. I re-downloaded and reinstalled the Java JDK. I restarted my computer, I ran this install again for the android SDK... nothing... it won't let me get past this point. Here is a screen shot of the screen I'm stuck on:
I've googled my problem, I've spent 2 hours trying to find the answer... the closest I could get would be something about adding a "Path" to my "Environment Variables." I found where the environment variables are in Windows 7, but I don't have the slightest clue what I am supposed to do.
Found this last night Android SDK install problem and now I can install it on my Win7 64bit + JDK 64bit
Somehow the r8 SDK installer are looking for JDK path inside 32bit registry key while I am installing 64bit JDK.
Update
Believe it or not, clicking Back and Next will fix it :) (someone comment on my blog post about it and judging from the others comments, it kind of works)
Disclaimer: This is my blog http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/
I have this same problem on my new PC, and now I found this and it works:
Windows 7:
From the desktop, right click the Computer icon.
Choose Properties from the context menu.
Click the Advanced system settings link.
Click Environment Variables. In the section System Variables, find
the PATH environment variable and select it. Click Edit. If the PATH
environment variable does not exist, click New.
In the Edit System Variable (or New System Variable) window, SET
the value of the PATH environment variable TO JAVA_HOME. Click OK. Close all
remaining windows by clicking OK.
Then it will have no problem on installing the Android sdk
Source: http://docs.oracle.com/javase/tutorial/essential/environment/paths.html
I've always installed Java JDK 32-bit from here.
Seems to be the easiest way, works properly, and I don't really see why one would need 64-bit when doing Android programming.
I had the same issue, but I found a way to fix it. When you get that box go and download it again; after it has downloaded, go back to the pop up box and hit the back button and then click next again and it should recognize that you have the JDK installed.
Hope this helps, and good luck.
you got to download jdk basic from oracle.com i was getting that too. visit that site and it will take you straight there. scroll down and to the first jdk/jre download the correct system type. install it and sdk should pop up after it done.
I installed the 64bit version of JDK from this site
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u23-oth-JPR#CDS-CDS_Developer
I had no problems installing android

Setting up Android Development Environment on Windows 7

I want to start learning Android developement. I have a windows 7 Home Premium Operating System. My problem is I am not able to setup the environment of developing android. Here is what I have done till now.
I have installed Java (both 32 bit and 64 bit versions)
I have installed Android SDK (installer_r08-windows.exe)
I have not yet downloaded any tools or platforms or ADT.
I have downloaded 32 bit eclipse. (eclipse-SDK-3.5.1-win32.zip)
I am stuck at this eclipse setup. A strange thing I observed is that, it does not install. When I click on eclipse.exe, it starts running from there only. I am still not sure if my eclipse installation is proper?
So, I assumed that my eclipse is working fine. Then when I try installing new programs in eclipse, eg google plugin, it gives error.
I want to know, where am I going wrong? What mistakes am I doing?
Can anyone guide me with the complete step by step procedure to setup my android development environment on windows 7?
Thanks in advance.
Jay
to 5: Eclipse don't have a normal installer, its just a zip file you can extract and run from anywhere.
to 6: What errors do you get? (I will update my answer when you deliver more details)
A step by step how to is here: http://developer.android.com/sdk/installing.html
I found I had to relax Windows 7's security settings quite a lot just until Eclipse was fully set up, and then I was able to restore them back to their normal setting.
I want to share my experience of installing environment in windows 7 ultimate.
* I have faced problem with both the version of JAVA 32 bit and 64 bit (I may be wrong). After deleting 32 bit my problem was solved at first time.
* Maximum learner mistake to ensure properly their android environment variables.
So, hope you will ensure that above two problem.
Here I have attached a link where proper installing method has been given with image marking. So, I hope it will help you to setup environment properly.
http://sanathnandasiri.blogspot.com/2011/03/how-to-setup-android-development.html
Thanks for your important time.

Categories

Resources