Skip to content

Cannot Set Java Compiler Compliance Java 6 or 7 only Java 8 With JDK 6, 7 or 8 #4655

@jredfox

Description

@jredfox

Issue: Cannot Compile Project with java 6, 7 but ONLY java 8 while using JDK 6, JDK 7 or JDK 8 as the Alternate JRE.

ERROR: Compiling for Java version '1.6' is no longer supported. Minimal supported version is '1.8'

Versions:

  • Eclipse Version 2025-09-R-win32-x86_64
  • OS: Windows 11

Steps to reproduce:

  • JDK-8 is the first in my path "C:\Program Files\Java\jdk-1.8\bin"
  • Project --> Properties --> Java Build Path --> Alternate JRE --> Installed JRES --> JDK 6, JDK 7 or JDK 8
  • Project --> Properties --> Java Compiler --> Notice No options to go below 1.8 compliance level even though JDK 8 suppose to support JDK 6 - 8 at the very least
  • Project --> Clean
  • Produces Error Compiling for Java version '1.6' is no longer supported. Minimal supported version is '1.8'

Also tried doing:

  • Project --> Properties --> Java Compiler --> Installed JRE --> JDK 6, JDK 7 or JDK 8
  • Project --> Properties --> Java Compiler --> Execution Environments --> JDK 6, JDK 7 or JDK 8

And if you try to run it you will get compilations for Java 8 only. Causing many errors like Unsupported major.minor version 52.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions