Error in setting JAVA_HOME

前端 未结 7 2354
庸人自扰
庸人自扰 2020-12-03 07:20

I have recently downloaded Maven and followed the instructions given on this this page. I already have ant installed on my machine. Now, if I want to verify that Maven is in

7条回答
  •  不思量自难忘°
    2020-12-03 07:45

    You are pointing your JAVA_HOME to the JRE which is the Java Runtime Environment. The runtime environment doesn't have a java compiler in its bin folder. You should download the JDK which is the Java Development Kit. Once you've installed that, you can see in your bin folder that there's a file called javac.exe. That's your compiler.

提交回复
热议问题