Hi All
I'm trying to instrument an android apk and have been following all the instructions from Auto-Instrumentation for Android however, when I run the instrument.cmd, it comes back with "cannot find java in \bin\java, please make sure JAVA_HOME is set correctly.
I'm using a 32bit jre on windows 8.1 and have set environmental variable to C:\Program Files (x86)\Java\jre7\ (as well as several other variations in order to make it work, but I keep getting the same error.
Any clues on what I might be doing wrong?
Thanks for any help
Julien
Answer by Maingard, J. ·
Thanks Kristof, 100% effective. Thanks for the help. Also, if anyone is interested who didnt attend boot camp, the instrument.cmd app requires being run via cmd and fed the line >instrument apk=<app location and name> prop=apk-instr.properties
Answer by Kristof R. ·
Hi Julien,
I have experienced that sometimes environmental variables need a system reboot to actually take effect.
You can try to execute << cd %JAVA_HOME% >> and see if it actually goes to that directory.
Cheers,
Kristof
JANUARY 15, 3:00 PM GMT / 10:00 AM ET