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

前端 未结 24 1516
庸人自扰
庸人自扰 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:08

    1. Uninstall older Java(JDK/JRE) from the system( Keep one (latest) java version), Also remove if any old java jre/jdk entries in environment variables PATH/CLASSPATH
    2. Eclipse->Window->Preferences->Installed JREs->Add/Edit JDK from the latest installation
    3. Eclipse->Window->Preferences->Installed JREs->Execution Environment->Select the desired java version on left and click the check box on right
    4. If you are using maven include the following tag in pom.xml (update versions as needed) inside plugins tag.

        
              org.apache.maven.plugins
              maven-compiler-plugin
              3.1
              
                  1.8
                  1.8
              
          
      
    5. Right click on eclipse project Maven - > Update Project

提交回复
热议问题