Skip to content

Eclipse seems to be unable to find a type in the same JDK #2422

Answered by guw
guw asked this question in Q&A
Discussion options

You must be logged in to vote

I managed to make the error go away using the following steps:

  • Right click project, select Build Path > Configure Build Path ...
  • Switch JRE Library to execution environment Java SE-17 (which is a different JDK in my case)
    -> at this point the problem went away
  • Switch JRE Library back to alternate JDK and the one that was originally used
    -> at this point the problem did not come back

Thus, it must have been some internal state messed up. 🤷

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@guw
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by guw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants