Skip to content

Java(16777540): The type xxx cannot be resolved. It is indirectly referenced from required .class files #1081

Description

@CsCherrYY

Error code Java(16777540)

related jdt.core PR: eclipse-jdt/eclipse.jdt.core#327

Affected projects:

release option 9 make compiler break when using JDK 11

External provided dependency:

look for indirectly class files

from cycle project

android related JDK

buildship JVM args

annotation processing

nested output folder

eclipse project importing (overriding exisitng configurations)

Activity

  1. changed the title [-]Error: The type xxx cannot be resolved. It is indirectly referenced from required .class files[/-] [+]Java(16777540): The type xxx cannot be resolved. It is indirectly referenced from required .class files[/+] on Oct 13, 2022
  2. github-actions commented on Nov 3, 2025

    @github-actions

    Hi Shi Chen (@CsCherrYY), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

    Suggestions to address “The type xxx cannot be resolved. It is indirectly referenced from required .class files”:

    High-confidence references:

    Other references with low confidence:

    Related JDT core JDK-11 + --release=9 breakage

    • Release option 9 breaks compilation on JDK 11; several projects report similar indirect reference errors.
    Issue: eclipse-jdt/eclipse.jdt.core#539

    The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions