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

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

    I got a solution.

    The most common solution for this problem is to change jdk location as my Installed JREs instead of the JRE location but that did not solve my problem this one time.

    So I did the below to solve the problem. Expand the Installed JREs tab and you will find a Execution environments tab.

    Click on your favourite execution environment. In my case it was JAVASE-1.8. There it shows 2 options. JDK and JRE. Select JDK there and the problem is solved.

提交回复
热议问题