I put it off for a while, but now I needed to get it back. I did not want to install the 32-bit Java virtual machine along with the 64-bit that I have.
I found a criminal. in android_sdk\tools\lib
there is a batch file named find_java.bat
. It calls find_java.exe -s
to find a list of potential Java locations. Running an exe file like this returns the error I saw:
Failed to convert path to short DOS path: c:\windows\system32\java.exe
-s means short. Running it without -s causes find_java.exe to work, forcing find_java.bat to work, forcing everything else to work. So, the fix was to change find_java.bat and remove -s.
I honestly don't know what Google thinks.
source share