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

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

    Go to windows -> Preferences -> Java -> Installed JREs

    may be jre is already added

    click on Add -> Standard VM -> Next -> Directory

    and browse for the JDK in my case path was C:\Program Files\Java\jdk1.8.0_111

    then Click on finish.

    you will see window like this

    select JDK -> Apply -> Ok

    And You are done.

提交回复
热议问题