views:

783

answers:

3

I have write one java project on IntelliJ idea 8.1.1.When I go to compile option of IntelliJ IDEA 8.1.1 then it shows pop-up message box, in that it shows error-

cannot determine version for JDK
Update JDK configuration.

Even though I have proper JDK version, I have jdk1.5.0 installed in my PC working properly with other environment. Please suggest any settings that I may need to change.

A: 

Edit: Try the answer to this question. As they seem to be duplicates, voting to close.

Yuval F
Yup I have seen it already.But let me know what should I do if it didn't recognise my installed JDK,
+1  A: 

What is the output of the "java -version" for this JDK installation? It could be that the output contains some non-standard strings before the actual version information. Such strings can be added by the environment variables on your system. IDEA may not be able to parse this output and detect the JDK version correctly.

CrazyCoder
A: 

CrazyCoder is correct. If you have some extra JAVA_FOO_BAR user or system variables set, it can interfere with IntelliJ IDEA's ability to parse the java version. Just delete those variables and try again.

Brandon Zeeb