4

I'm using Windows-7 64 bit and I have installed this(jdk-7u45-windows-x64) updated JDK in my system. My SDK was updated upto API level 18(Android 4.3).

When i click on SDK manager in the eclipse, it does not start. I tried open it directly with Administrator permission also. But it does not start. I had tried to set the variable path like these. enter image description here enter image description here But I'm always getting the same error like this. enter image description here

After I found that in my find_java.exe get the java path from windows\system32 as shown below enter image description here.

How can I set the Java path to my installed java folder.

Need some one help to figure it out. For Reference look at this link also. SDK manager not starting

Community
  • 1
  • 1

7 Answers7

1

While setting the environment variable try JAVA_HOME variable pointing the bin directory.

because the android checks the java.exe in particular path.

Exhausted
  • 1,867
  • 2
  • 23
  • 33
1

I am new to android,As long as i studied ,Android requires Java 1.5 or 1.6. You are using 1.7 Google does not add complete jdk 1.7 support to android system requirement(some api are exception) .. It does not mean that you should not have jdk 1.7. you should also have 1.6 jdk for compiler compilance. it is a better way to avoid using 1.7 jdk ,if u dont want jdk 1.7 features. http://developer.android.com/sdk/index.html see the system requirements and even if u developed using 1.7...when you installing your app in real device .we may face signing issue. you may use some jar file which targetting java 1.7. but android system runtime(dalvik jvm) does not know how to process those files which means dex tool wont process those files which belongs to 1.7 and it wont create classes.dex file..hope it will help somehow

Valery Viktorovsky
  • 6,487
  • 3
  • 39
  • 47
0

From the error you have posted it seems the problem is only with the path settings.

Add the path upto the bin folder of your jdk - C:\Program Files\Java\jdk1.7.0_45\bin and restart the eclipse.

Kris
  • 189
  • 13
  • I have tried adding the \bin in the path. but it shows the same error. – ShankarManickavasagam Nov 12 '13 at 11:57
  • Wierd...!! Try restarting your machine once.....It might help. If it not, then Add the path from command prompt itself - PATH=%PATH%;jdk path and try. Note that this will help you add the path for that instance only and not permanently. – Kris Nov 12 '13 at 13:30
  • Also once you set the path, try "echo %PATH%" just to check the path is set correctly and then try your process. If it's correct and still not working, make sure there is a javac in that directory by trying: "c:\program files\java\jdk1.6.0_16\bin\javac.exe" from the command prompt. – Kris Nov 12 '13 at 13:38
  • It shows my java is calling from system32 folder. see the above screen shot. Need your help to call java from my installed location – ShankarManickavasagam Nov 15 '13 at 04:50
0

Please verify if your SDK Location in the Window->Preferences->Android points to the correct SDK path.

VikramV
  • 1,111
  • 2
  • 13
  • 31
  • Hope it was working earlier and only stopped working after your upgraded your SDK to API18. Typically you would require to update your ADT version as well. And also in parallel check if the SDKManager.exe resides inside in the SDK path. – VikramV Nov 12 '13 at 13:58
  • Yes @VikramV. It was working before. I have updated my ADT version to 22.3.0. Can you please explain clearly about the last point? – ShankarManickavasagam Nov 13 '13 at 05:57
  • I meant for you to check if your SDKManager.exe file is in SDK path. Typically: \SDK Manager.exe – VikramV Nov 13 '13 at 10:36
  • It shows my java is calling from system32 folder. see the above screen shot. Need your help to call java from my installed location – ShankarManickavasagam Nov 15 '13 at 04:49
  • Please check your environment variable to see if it points to the right location JAVA_HOME - C:\Program Files\Java\jdk1.7.0_07 JRE_HOME - C:\Program Files\Java\jre7 Both the above should be in User Variables Below should be done in System Variables Path - _Add_ `C:\Program Files\Java\jdk1.7.0_07\bin;` _at the start_ – VikramV Nov 15 '13 at 05:18
0

Download latest android bundle from http://developer.android.com/sdk/index.html.

and replace new sdk folder with old sdk folder from android bundle folder.

now it's may work.

chimbu
  • 786
  • 5
  • 16
  • 36
0

Finally Reinstalled my OS and Installed JDK 1.6. Then I have added my updated SDK to my ADT. It works fine now.

0

I've had the same issue, and this solved it

enter image description here enter image description here enter image description here