简体   繁体   中英

IntelliJ 12 not working correctly with JDK 1.7

When I try to run my project (Shift+F10/play button) in IntelliJ 12 Ultimate using JDK 7 update 7 , I get the following error:

Java:System Java Compiler was not found in classpath

I tried:

  • manually add my JDK\\bin path to the path environment variable in Windows, rebooting. (Still didn't help. I got the same error)
  • added JDK7u7 under every part of Project Structure where one could select a JDK.

However, when I change from JDK7u7 to JDK6u27 then all of a sudden my project compiles without problems .

How do I run my project with JDK7?

OS: Windows 7 x64 Java versions: JDK 1.7u7 i586 32 bit, JDK 6u27 i586 32 bit

Thanks

I have never used IntelliJ, but invalidating caches ( FILE -> invalidate Cache) often helps with different kind of these problems.

Moreover I would recommend installing the latest Java7 JDK Version because of some security issues lately.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM