Well, it looks like your install still thinks that your home folder is
in C:\Users\... (look at HOMEDRIVE, HOMEPATH, LOCALAPPDATA,
USERPROFILE, ...)

To be honest I'm not sure how Java thinks your home directory is in
your D:\ drive.

Anyway, the fix is to define a new env variable called
ANDROID_SDK_HOME that points to your home directory on D:\ where the
.android file is located.

This will override the default path lookup for the emulator (and the
java tools, but they already use the proper HOME directory anyway),
and should fix your problem.

Xav

On Mon, Apr 20, 2009 at 2:26 PM, Noah <noahcol...@gmail.com> wrote:
>
> Ah, now I feel stupid, I figured it was a command with the emulator :)
> Anyway, here are all the environment variables:
>
> C:\Users\Noah>set
> ALLUSERSPROFILE=C:\ProgramData
> APPDATA=C:\Users\Noah\AppData\Roaming
> CLASSPATH=.;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
> CommonProgramFiles=C:\Program Files\Common Files
> CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
> COMPUTERNAME=THOR
> ComSpec=C:\Windows\system32\cmd.exe
> FP_NO_HOST_CHECK=NO
> HOMEDRIVE=C:
> HOMEPATH=\Users\Noah
> LOCALAPPDATA=C:\Users\Noah\AppData\Local
> LOGONSERVER=\\THOR
> NUMBER_OF_PROCESSORS=4
> OS=Windows_NT
> Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:
> \Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program
> Files (x86)\QuickTime\QTSystem\;C:\Windows\System32\WindowsPowerShell
> \v1.0\
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
> PROCESSOR_ARCHITECTURE=AMD64
> PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 7,
> GenuineIntel
> PROCESSOR_LEVEL=6
> PROCESSOR_REVISION=1707
> ProgramData=C:\ProgramData
> ProgramFiles=C:\Program Files
> ProgramFiles(x86)=C:\Program Files (x86)
> PROMPT=$P$G
> PUBLIC=C:\Users\Public
> QTJAVA=C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
> SESSIONNAME=Console
> SystemDrive=C:
> SystemRoot=C:\Windows
> TEMP=C:\Users\Noah\AppData\Local\Temp
> TMP=C:\Users\Noah\AppData\Local\Temp
> USERDOMAIN=Thor
> USERNAME=Noah
> USERPROFILE=C:\Users\Noah
> VS90COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\Common7\Tools\
> windir=C:\Windows
>
> On Apr 20, 5:16 pm, Xavier Ducrohet <x...@android.com> wrote:
>> Just open a windows command prompt, and type "set" :)
>>
>> thanks,
>> Xav
>>
>>
>>
>> On Mon, Apr 20, 2009 at 2:12 PM, Noah <noahcol...@gmail.com> wrote:
>>
>> > Sure. I'm new to Android development and have only gone through
>> > getting the emulator and Eclipse set up. If you can be more specific
>> > about what commands you would like me to run, I will post the results
>> > for you.
>>
>> > Thanks
>>
>> > On Apr 20, 2:04 pm, Xavier Ducrohet <x...@android.com> wrote:
>> >> Hi Noah,
>>
>> >> can you send me the result of the "set" command in a command prompt.
>> >> I'd like to see how the new path to your user directory is setup to
>> >> figure out what is going wrong with emulator.
>>
>> >> thanks
>> >> Xav
>>
>> >> On Sun, Apr 19, 2009 at 7:39 PM, Noah <noahcol...@gmail.com> wrote:
>>
>> >> > Yes, I am running Vista x64. I have also manually moved directories
>> >> > like Documents, Music, etc from the C drive to D, in case it was
>> >> > picking up something there.
>>
>> >> > Also, strangely enough, the emulator worked after copying the files to
>> >> > C but saved emulator-user.ini and other *.img files to the location on
>> >> > D.
>>
>> >> > The locations are:
>> >> > C:\Users\Noah\.android\avd
>> >> > D:\Profile\.android\avd    (Profile being where I chose to move my
>> >> > documents)
>>
>> >> > If you need more information, please let me know.
>>
>> >> > Thanks
>>
>> >> > On Apr 19, 5:57 pm, Xavier Ducrohet <x...@android.com> wrote:
>> >> >> Hi Noah,
>>
>> >> >> It looks like the Java API used by the Android tool to return the home
>> >> >> user folder properly found it in D:\...
>>
>> >> >> However, the C API used by the emulator seems to return the wrong one
>> >> >> (using the default C:\User\XXX)
>>
>> >> >> We'll have to see if/how we can fix this. From the path you mention,
>> >> >> I'm guessing you are running Vista?
>>
>> >> >> Were the AVD files properly located under <home>/.android/.avd/ at 
>> >> >> least?
>>
>> >> >> thanks
>> >> >> Xav
>>
>> >> >> On Sun, Apr 19, 2009 at 11:14 AM, Noah <noahcol...@gmail.com> wrote:
>>
>> >> >> > I am having the same issue. Running that command gave me the
>> >> >> > following:
>>
>> >> >> > emulator: could not open .ini file: C:\Users\XXXX\.android/avd/
>> >> >> > TestAVD.ini: No such file or directory
>> >> >> > emulator: ERROR: unknown virtual device name: 'TestAVD'
>> >> >> > emulator: could not find virtual device named 'TestAVD'
>>
>> >> >> > The android batch file created the AVD on D:. I copied the files to 
>> >> >> > C:
>> >> >> > where it's expecting them and I guess I'll have to remember that when
>> >> >> > running commands. Should also probably be a bug to look into.
>>
>> >> >> > The SDK in on D as is my Users directory.
>>
>> >> >> > Thanks.
>>
>> >> >> > On Apr 15, 2:44 am, Raphael <r...@android.com> wrote:
>> >> >> >> Can you start the emulator with the following debug option?
>>
>> >> >> >> $ emulator -debug avd_config -avd android11
>>
>> >> >> >> That will show us the exact error.
>> >> >> >> R.
>>
>> >> >> >> On Tue, Apr 14, 2009 at 3:30 PM, im.thatoneguy 
>> >> >> >> <im.thatone...@gmail.com> wrote:
>>
>> >> >> >> > I created an AVD "Android11"
>>
>> >> >> >> > If I run "Android list avd" it lists "android11" as the first
>> >> >> >> > available AndroidVirtualDevices.
>>
>> >> >> >> > If I run
>>
>> >> >> >> > "Emulator -avd android11"
>>
>> >> >> >> > it gives me an error:
>> >> >> >> > "
>> >> >> >> > emulator: ERRORunknowndevicename: 'android11'
>> >> >> >> > emulator: could not find vritualdevicenamed 'android11'
>> >> >> >> > "
>>
>> >> >> >> > do I need to move the .android/avd/ folder somewhere specific for 
>> >> >> >> > the
>> >> >> >> > emulator to see them?  Android sees it just not emulator.
>>
>> >> >> --
>> >> >> Xavier Ducrohet
>> >> >> Android Developer Tools Engineer
>> >> >> Google Inc.
>>
>> >> --
>> >> Xavier Ducrohet
>> >> Android Developer Tools Engineer
>> >> Google Inc.
>>
>> --
>> Xavier Ducrohet
>> Android Developer Tools Engineer
>> Google Inc.
> >
>



-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to