tags:

views:

52

answers:

1

I am working on Android. I try inside a terminal execute java -jar hierarchyviewer.java

And i have this error

11:46:48 E/adb: Failed to get the adb version: Cannot run program "adb": CreateP rocess error=2, the system cannot find the file specified

I can run the hierarchyviewer.jar from /tools/lib (double click) i can see the grafic interface but do not show anything, i can not see the tree and stuff. I am using windows 7 ,64 bit and i am executing the emulator and/or the device before run hierarchyviewer.

http://developer.android.com/guide/developing/tools/hierarchy-viewer.html

A: 

Try to add path of android SDK to PATH environment variable.

cement
thanks but i have never understood how to add a path. Can you explain me more?
TheSeeker
http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
cement
http://www.java.com/en/download/help/path.xml
cement
I am still have the same problem i put de path like: /tools/lib/hierarchyviewer.jar I also put java -jar hierarchyviewer.jar and i have the same error with a difference that now the hierarchyviewer is open but without devices....no solution yet
TheSeeker
I also tryed the same on linux (ubuntu) and i have exactly the same problem. Someone can use hierarchyviewer properly?
TheSeeker