drozer使用finduri报错的解决办法
修改drozer\Lib\drozer\drozer\下的configuration.py文件:
在#check the library这行,修改:
1 2 3 4 5 6 7 8 9 10 11 12 |
#is the required exe available on the PATH? if path == None and cls.get("executables", name) == None: path = 'D:\\Java\\jdk1.6.0_45\\bin\\javac.exe' if path == None: path = cls.get("executables", name) if path == None or path == "": sys.stderr.write("Could not find %s. Please ensure that it is installed and on your PATH.\n\nIf this error persists, specify the path in the ~/.drozer_config file:\n\n [executables]\n %s = %s\n" % (name, name, platform.system() == "Windows" and "C:\\path\\to\\" + name or "/path/to/" + name)) return path |
有个两个比较坑的地方,一个是最好用jdk1.6版本,一个是JAVA的安装路径不要有空格,比如Program Files这种。。。