Eclipse/Maven error: “No compiler is provided in this environment”

前端 未结 24 1428
庸人自扰
庸人自扰 2020-11-27 04:36

I am a relative newcomer to the world of Java enterprise development. My organization\'s Java guru is out on indefinite family leave, and I have been assigned the task of m

24条回答
  •  情深已故
    2020-11-27 05:21

    To check what your Maven uses, open a command line and type:

    mvn –version
    

    Verify that JAVA_HOME refers to a JDK home and not a JRE

    On Windows:

    Go to System properties -> Advanced system settings -> Advanced -> environment variable and on the System variables section select the JAVA_HOME variable and click on Edit Fill the form with the following Variable name: JAVA_HOME Variable value:

    On Unix:

    export JAVA_HOME=
    

    see this link

提交回复
热议问题