Java command works but javac command doesn't

后端 未结 4 1571
借酒劲吻你
借酒劲吻你 2021-01-29 03:37

I just install jdk and jre version 8 In windows. Environment variable already set. I try run "java -version" in cmd and it shows the version of java installed. But whe

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-29 04:10

    The JRE only contains the java executable, and not javac. So apparantly your path points to the JRE installation dir, not the JDK.

提交回复
热议问题