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: 3 comments 2 replies

Comment options

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

Comment options

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

Answer selected by guw
Comment options

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