That actually narrows down the problem into JAVA_HOME.
Can you please check how many Java you have in your computer, for example :
If you indeed have multiple, please go to your command windows, and type (for example):
To set it to correct 64-bit version of JRE
You can also try to remove that JAVA_HOME: follow the instruction in this post to find the settings and remove it.
Let me know if it helps.