Eclipse IDE cannot resolve to a type. All values.
My IDE is showing errors all over my screen. Mainly, all the methods are showing errors that say 'cannot be resolved to a type.'. I know this has something to do with the build path, but I can't seem to fix it. Any help?
23 Replies
⌛
This post has been reserved for your question.
Hey @AbuAbed! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Oh, and all the code was imported from a gitlab repository, and I cannot run any of it because of this error.
Can you check the build path?
Right click on the project and select
Build Path
>Configure Build path
specifically the Libraries
tab - what's in there?@dan1st | Daniel This is what's in there.
Did you install a JDK on your computer?
If so, Eclipse doesn't know about it (or it only finds JDKs <17)
I have JDK 21.0.1 installed.
A previous version of Eclipse works without issues, but this is the 2022-12 version and I just started working on it.
ok select JRE System library
then select Edit on the right
Then?
what's shown?
select
Installed JREs
ok you have it there
then you can apply and close that
and select that JDK under
Alternate JRE
Like this?
yes
apply and close the whole thing
including the build path modal
All of the errors are gone now.
Thanks for that, now I have the other problem mentioned at the top.
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
ok so do you have a main class?
Yes I do. Do I launch it from there?
right-click the main class
and select Run As>Java application
that should run the main class specifically
Oh alright
I believe that's all, thanks again!
Post Closed
This post has been closed by <@299947216641064960>.