11 comments

Please try File | Invalidate Caches | Invalidate and Restart.

Also try to remove and add JDK again: https://stackoverflow.com/a/61180376/104891.

1

Okay, I've invalidated and restarted IntellIJ, and replaced the JDK. I'm still getting the same errors, though.

0

Okay. I've deleted the System directory, but it did not fix it. I also went ahead and tried reinstalling IntelliJ altogether, and that did not seem to resolve the issue either.

0

How does JDK classpath tab look for you?

 

Do you see this JDK under External Libraries node of the Project View? Can you browse the JDK classes there?

 

0

Can you browse the JDK classes like this?

0

Here's what the JDK looks like for me: I can indeed browse the JDK classes there:

0

What about the IDE Project View | External Libraries node? Please show the screenshot of the JDK classes there.

0

Ah, I see your other screenshot now.

 

It appears that I can view the JDK classes in IntelliJ:

0

This issue's particularly strange because code does seem to compile as long as we start out in a template, which I'd presume because the Run button appears by default. It's like IntellIJ itself can't parse what I'm writing: either to display the Run button even if I write a correct Main method signature or to otherwise recognize that I'm using content from the JDK.

0

It's some cache/index issue. Not sure why invalidating caches doesn't help.

Try https://www.jetbrains.com/idea/nextversion/.

Try a different JDK version/vendor.

0

Please sign in to leave a comment.