Somehow I had to restart the hung computer. As a result, IntelliJ independently changed the theme of the design and began to make mistakes. Reinstalled JDK (although it was 1.7, now 18), IDE (and tried 2016, and 2017). I open it: it seems to work, but the icons are inactive and no classes / interfaces are added.

What can it be and how to fix it? Could the JDK version affect, and if so, where can I dig out 1.7 now? At the same time, NetBeans works as if nothing had happened.

enter image description here

Configured. If someone faces a similar problem, here’s the solution:

  • First of all (although this is understandable), set the required version in "File -> Project Structure -> Project Settings";
  • Secondly, check that in "File -> Settings -> Compiler -> Java Compiler -> Target bytecode version" everything is also correct.

enter image description here

  • 2
    The answer must be written in the answers, not in the question. - Qwertiy

1 answer 1

Most likely the problem is in the "spoiled" local settings. Delete or restore these settings from the backup.

Settings are stored:

  • Windows Vista, 7, 8, 10 - <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.<PRODUCT><VERSION>
  • Windows XP - <SYSTEM DRIVE>\Documents and Settings\<USER ACCOUNT NAME>\.<PRODUCT><VERSION>
  • Linux - ~/.<PRODUCT><VERSION>
  • MacOS - ~/Library/Preferences/<PRODUCT><VERSION>

More details can be found in the documentation .

  • The folder with local settings is deleted upon uninstallation. I have reinstalled 3-4 times. I'm afraid that the OS will have to be demolished, although if this happens again in the future, demolishing it every time is not an option at all. - Nikolay
  • Have you checked that it is deleted? - Mikhail Vaysman
  • Of course. It seems to me that the matter is still in the JDK version. For example, in NetBeans, an error also popped up, until I picked it up in the settings. youtube.com/watch?v=JUgmoqSnk6M I don’t know where to change it in IntelliJ. According to the documentation climbed in Computer Properties> Extras. system parameters> Environment variables and poked around there: result 0. - Nikolay