Cannot run Java from the Windows PowerShell command prompt

前端 未结 9 851
野性不改
野性不改 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:40

    You need to modify your "PATH" environment variable to add your "java" bin location, one way via command prompt set path=%path%;;

    But this will be set only for your current session of your terminal.

提交回复
热议问题