First image shows command line. Everything looks good!
Second image is misleading. You forgot to mention that you are using Eclipse. Error is that Eclipse is not picking up Environment Variables, which is a fairly common problem. You will have to set them manually: