JDK classes are unresolved? (red wavy underlines)

On my MacBook Pro, I installed IDEA 9.0.1 CE. I tried to open a project. I have two JDK's configured: 1.5 and 1.6. This is on a Snow Leopard machine.

No matter what I do, I don't seem to be able to get rid of those red wavy underlines in the editor. Surprisingly all the unresolved classes are from the JDK. What is the way out? How can I tell the IDE to resolve the JDK classes again (if they are cached somewhere on the disk)?

Restarting the IDE does not seem to help.


Comment actions Permalink

Make sure in your project structure settings under "Project" that you've selected an appropriate Project SDK from one of the one's you've setup.  Sometimes I've seen that setting get set to "No JDK" or something along those lines.

Comment actions Permalink

Ah. Probably that was it. As a side-tip, I'd say the "name of the SDK platform" you choose is of essence. If the project file (e.g. .classpath) refers to the project as some name, make sure that the name you choose in SDK (it's just JDK, but Ij calls it SDK) is the same.

Thanks Russ.


Please sign in to leave a comment.