Maven “build path specifies execution environment J2SE-1.5”, even though I changed it to 1.7

后端 未结 11 1512
天涯浪人
天涯浪人 2020-11-27 12:00

In Eclipse Juno, I installed the latest m2e plugin (1.2.20120903-1050). In preferences, I have added jdk1.7.0_11 in Java -> Installed JREs -> Add, and then specified the lo

11条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 12:55

    I'm using Juno 4.2 with latest spring, maven plugin and JDK1.6.0_25.

    I faced same issue and here is my fix that make default after each Eclipse restart:

    1. List item
    2. Right-click on the maven project
    3. Java Build Path
    4. Libraries tab
    5. Select current wrong JRE item
    6. Click Edit
    7. Select the last option (Workspace default JRE (jdk1.6.0_25)

提交回复
热议问题