
app-inventor-for-android - issue #2579
Emulator not starting up : Win 8, HomePath on D:, HomePath includes spaces and special characters, 8Dot3 disabled
I'm running AppInventor in Chrome on Windows 8 64-bit version. AppInventor Built: May 6 2013 Version: v134.
The Emulator did not start up. After much analysis, what I figured out was the following :
In the run-emulator.bat, %~s1 (:SetAppinvDir function at the bottom of the file) was not working properly. After a lot of debugging, what I figured out was the following : 1. My HOMEPATH is on D:, not C:, because I have installed Windows 8 on a SSD, and my documents and everything else is on a different drive. %~s1 was expanding to c:..., which gave a path not found problem. 2. Even if I used %HOMEDRIVE% or even %USERPROFILE%, I was still getting an error. This is probably because my user on Windows is in the form "NAME & NAME", where the names are that of two individuals. So my userprofile is in the form "D:\Name & Name" 3. This is when I realised that my D drive doesn't support 8dot3, basically a setting that can be changed through FSUTIL. However, I didn't want to change this as it slows down NTFS.
Eventually, I just created all the folders as needed by the batch file, and deleted it from the batch file. I still found an issue with launch of emulator.exe, and identified it to %TEMP%. I put that in quotes and am finally able to launch the emulator.
What was worse is that Windows 8 doesn't allow direct editing of files with "Program Files (x86)", so I had to edit the file somewhere else and copy it back.
I am attaching my final run-emulator.bat file. It would be great if you can fix it. I see a lot of other batch files in the AppInventor directory, and I hope those work properly, or else I have a lot more work to do.
Rahul
- run-emulator.bat 1.16KB
Comment #1
Posted on Jun 18, 2013 by Quick RabbitHi there, unfortunately the scripts assume a location; the setup instructions instruct to "Do not change the installation location". If you have a custom install, we assume you are knowledgeable enough to setup your own scripts. The installation instructions need to work for a majority of people. Sorry not to be of more help, but you've already figured it out anyway. Thanks!
Comment #2
Posted on Jun 18, 2013 by Helpful DogThanks.
Mine was NOT a custom install of App Inventor. I did not change the install location. I did a completely automated install.
What I did do was a non-default Windows 8 install - With a SSD, many people will move their data folders across to D: on a separate drive.
8dot3 is disabled by default on Windows 8 NTFS.
The only thing custom is my user id containing the spaces and special characters, which may not be such an uncommon thing.
Anyway, I figured it out, after getting into DOS commands - I'm sure there's tons of people who can look up a Windows SSD install, and get foxed by this.
Rahul
Status: WontFix
Labels:
Bug