Error highlighting is flagging my Java types "cannot resolve symbol" even tho compile & run works

I'm trying to use IDEA 8.1 on Windows 7. I have JDK 1.6.0_12 at C:\Program Files\Java\jdk1.6.0_12. I'm running this on Parallels which I suspect *may* be the problem, but I really have no idea.

When I use a Java type (such as String) the type is highlighted in red and the error highlighting says "Cannot resolve symbol String". But I can compile and run just fine from within IDEA.

When I go to the settings and change the JDK, for example to "no jdk" then back to "1.6", the indexing dialog pops up briefly and appears to be reading from C:\Program Files\Java\jdk1.6.0_12\......  But the error highlighting persists.

I wondered if anyone has gotten 8.1 working on Windows 7 Beta? If no one has had this issue I guess my conclusion is that I can't use it on Parallels. My next step is to try IDEA 7 if I can find a download for it.

-Kay

2 comments
Comment actions Permalink

Hello Kay,

Parallels should not be an issue. Make sure that you have the module JDK
set up correctly (so that it inherits the project JDK settings).

I'm trying to use IDEA 8.1 on Windows 7. I have JDK 1.6.0_12 at
C:\Program Files\Java\jdk1.6.0_12. I'm running this on Parallels which
I suspect may be the problem, but I really have no idea.

When I use a Java type (such as String) the type is highlighted in red
and the error highlighting says "Cannot resolve symbol String". But I
can compile and run just fine from within IDEA.

When I go to the settings and change the JDK, for example to "no jdk"
then back to "1.6", the indexing dialog pops up briefly and appears to
be reading from C:\Program Files\Java\jdk1.6.0_12\...... But the
error highlighting persists.

I wondered if anyone has gotten 8.1 working on Windows 7 Beta? If no
one has had this issue I guess my conclusion is that I can't use it on
Parallels. My next step is to try IDEA 7 if I can find a download for
it.

-Kay

---
Original message URL:
http://www.jetbrains.net/devnet/message/5233822#5233822

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hooray, this is no longer a problem for me!

I was sharing my Mac home folder with the Parallels VM. This caused confusion of "home" directories, in other words, C:\Users\<name> both was and was not my home folder, depending on how you asked. I turned off home folder sharing, and IDEA functions beautifully now.

Thank you for your prompt reply; it gave me the encouragement I needed.

-Kay

0

Please sign in to leave a comment.