The error may be like :
WARNING: Java not found in your path.
Checking it it's installed in C:\Program Files\Java instead.
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
Ok,now I'll tell you how to fix it : (Win XP)
- Make sure that you have installed the right type of java's jdk here : http://www.oracle.com/technetwork/indexes/downloads/index.html
- Right Click on My Computer
- Select Properties
- Click Advanced tab on the right bottom section
- Click the Environment Variables... button at the bottom of the properties dialog
- On the bottom list (System variables) find the "Path" variable
- Click the Edit button
- Go to the end of the textbox and type something like c:\program files\java\jdk1.6.0_26\bin (make sure it matches the name of your java directory (java.exe)!)
- Click OK
- Click OK
- Click OK
- Done
No comments:
Post a Comment