Simple one: new module not finding JDK classes

In a new Module (using IJ 7.0.4), I have the JDK set up as 1.6.0_07.  The JDK's platform settings shows the 14 JDK jar files included in the classpath, including the all important rt.jar.

But when editing java source code, all of the JDK classes are marked in RED as not found, e.g. java.lang.String, java.lang.Integer, java.lang.Thread, etc.

So, I'm not sure:
    what did I do wrong in creating this module
    what configuration tweak is required to correct the issue.


thanks!

stephenb

1 comment
Comment actions Permalink

Have a look at which JDK is declared to be used by your project in the project settings / JDK menu. I sometimes update the JDK and then old projects will complain about standard java classes not being found, too, just because the old JDK path doesn't exist any more but this old project still tries to use it.

If that doesn't resolve the issue, try adding a new JDK path and explicitely changing the JDK to be used to that one. This problem you're having really seems like just a configuration issue.

HTH,
Denis

0

Please sign in to leave a comment.