Cannot run Java from the Windows PowerShell command prompt

前端 未结 9 849
野性不改
野性不改 2020-12-16 16:55

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.

9条回答
  •  攒了一身酷
    2020-12-16 17:41

    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

提交回复
热议问题