i am using windows 8.1 

here is the error

[![here is the eror](https://i.stack.imgur.com/YuAX7.png)](https://i.stack.imgur.com/YuAX7.png)

cmd seems to see the java -version but not my android studio.

here is my system variable

[![here is my system variable](https://i.stack.imgur.com/Jjpua.png)](https://i.stack.imgur.com/Jjpua.png)