Java not recognized on PowerShell

前端 未结 3 1044
梦谈多话
梦谈多话 2021-01-19 01:36

I\'m using PowerShell on Windows 2012 server, and I deleted all the java commands from System32, reinstalled jdk, set JAVA_HOME and Path to point at the new installation. An

3条回答
  •  臣服心动
    2021-01-19 02:36

    • PATH needs to point at the bin/ directory within the JDK/JRE installation
    • JAVA_HOME needs to point to the top level directory of the JDK/JRE

    I suspect you're setting PATH to be the JDK/JRE folder which doesn't contain the java executable, as it's in the bin/ subdirectory...

提交回复
热议问题