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

后端 未结 30 2467
盖世英雄少女心
盖世英雄少女心 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:20

    I tried most of the answers without success. What worked for me was (after following https://stackoverflow.com/a/21279068/2408893):

    • right click on project -> Properties
    • select Java Build Path
    • select the JRE System Library
    • click edit
    • In execution environment select a jdk

    • click Finish
    • build and run

提交回复
热议问题