I solved this problem by making sure that the value of JAVA_HOME was the folder location in English
C:\Program Files\Java\jdk1.8.0_31
rather than the folder location that one can see/explorer browse in my Windows7 - Portuguese installation
C:\Programas\Java\jdk1.8.0_31