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

后端 未结 30 2473
盖世英雄少女心
盖世英雄少女心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 16:17

    My answer pertains to the Eclipse in Windows environment.

    I went to Preferences --> Java --> Installed JREs I did NOT see the JDK in here. I only saw the JRE here. So I added the JDK and then unchecked the JRE. Then checked JDK. Then I ran the POM file using Run Configurations. Choose the tab JRE and select the option "Workspace Default..." Here are the images

提交回复
热议问题