#Eclipse IDE cannot resolve to a type. All values.

37 messages · Page 1 of 1 (latest)

scarlet fjord
#

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?

latent jettyBOT
#

This post has been reserved for your question.

Hey @scarlet fjord! Please use /close or the Close 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.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

scarlet fjord
#

Oh, and all the code was imported from a gitlab repository, and I cannot run any of it because of this error.

limber brook
#

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?

scarlet fjord
#

@limber brook This is what's in there.

limber brook
#

Did you install a JDK on your computer?

#

If so, Eclipse doesn't know about it (or it only finds JDKs <17)

scarlet fjord
#

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.

limber brook
#

ok select JRE System library

#

then select Edit on the right

scarlet fjord
#

Then?

limber brook
#

what's shown?

scarlet fjord
limber brook
scarlet fjord
limber brook
#

ok you have it there

limber brook
limber brook
scarlet fjord
#

Like this?

limber brook
#

yes

#

apply and close the whole thing

#

including the build path modal

scarlet fjord
#

All of the errors are gone now.

#

Thanks for that, now I have the other problem mentioned at the top.

latent jettyBOT
limber brook
#

ok so do you have a main class?

scarlet fjord
#

Yes I do. Do I launch it from there?

limber brook
#

right-click the main class

#

and select Run As>Java application

#

that should run the main class specifically

scarlet fjord
#

Oh alright

#

I believe that's all, thanks again!