I have Java installed on my machine (the JRE is under C:\\Program Files\\Java
) but I can\'t run any java command from the Windows PowerShell command prompt.
I fixed this problem by reinstalling Git-2.8.2-64-bit.exe and following these instructions! https://learn.adafruit.com/windows-tools-for-the-electrical-engineer/git-plus-command-line-tools
I then added the code mentioned above c:\Program Files\Java\jdk-11.0.3\bin by navigating to control panel /system/Advanced tab Click on the Environment Variables then the system's variables and looked for Path then edited it. then added c:\Program Files\Java\jdk-11.0.3\bin and all is working for me now in a Windows PowerShell and also a MinGW64! See images of it working! Windows power shell