That error may mean two things:

1- Do you have Java installed? You probably got one for Eclipse. If
not, get the latest from java.sun.com.

2- If you have java installed, it's not in the path by default.

To fix #2:
- open Control Panel > System,
- Advanced tab
- Environment Variables button at the bottom
- Add the JRE bin to the path, e.g. edit the "path" variable to add
something like this at the end:
  ;C:\Program Files\Java\jre1.6.0_07\bin
- Say OK tons of time
- Re-open your command prompt and try again.

R/

On Tue, Apr 14, 2009 at 9:22 PM, schwiz <[email protected]> wrote:
> thanks for the reply but when I am getting an error.  Here is a copy
> of the command and the error.  Any ideas?
>
> C:\Users\...\Desktop\eclipse\android-sdk-windows-1.5_pre
> \tools>android create
>  avd --name myAVD2 --target 2
> 'java' is not recognized as an internal or external command,
> operable program or batch file.
>
>
>
>
>
> On Apr 14, 12:18 am, Raphael <[email protected]> wrote:
>> First open a dos box, also called a "Command prompt":
>>
>> Under XP:
>>   Start menu > all programs> accessories > command prompt
>> Under Vista just search for "command prompt" in the Start seach box.
>>
>> Then use the "cd" command (=change dir) to change the directory to
>> where you installed the SDK.
>> If you want to make things easy, just place the sdk in "c:\sdk" using
>> the windows explorer and type this:
>>
>> c:   <return>
>> cd \sdk\tools   <return>
>>
>> Then you can create your AVD like this:
>>
>> android create avd --name myAVD1 --target 1  <return>
>>
>> android create avd --name myAVD2 --target 2  <return>
>>
>> The target 1 will be for Android 1.1 and target 2 for Android 1.5
>>
>> Let us know if that helps. Google "command prompt tutorial" for more help :-)
>> R/
>>
>>
>>
>> On Mon, Apr 13, 2009 at 9:53 PM, schwiz <[email protected]> wrote:
>>
>> > So im wanting to fiddle around with the new sdk but I never learned
>> > how to use command line in any IDE (does my school just suck or is it
>> > not very common)   Anyways I need to create an AVD with the command
>> > line can someone please tell me the steps or tell me somewhere I can
>> > read up on this.  Ive tried google searching command line eclipse, but
>> > the only results I get are nifty commands I can use once I actually
>> > find out how to get a command line.  Im using windows.
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to