No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

后端 未结 30 2212
盖世英雄少女心
盖世英雄少女心 2020-11-22 15:40

I\'m compiling a project in Eclipse using m2eclipse. I set the JDK path in Eclipse like this:

Windows-->preferences-->installed jres--> jdk1.7.xx  p         


        
30条回答
  •  死守一世寂寞
    2020-11-22 16:11

    Though the question is about the error with Eclipse setup but thought an answer of fixing this error with IntelliJ and Windows 10 setup may also be helpful here.

    1. Go to File --> Settings --> Build, Execution, Deployment --> Build Tools --> Maven --> Importing

    2. Set JDK for Importer as shown below to JAVA_HOME

    Also JAVA_HOME should be set to JDK path at Environment Variables --> System variables and also add %JAVA_HOME%\bin to Path System variables

提交回复
热议问题