Cannot find JDK 1.8 for module
Hello, community ! I am struggling with Idea ever since I installed it. After finally overcoming Idea's refusal to compile projects under a Cyrillic username.... Another problem popped up. I am running Idea as Administrator, so it doesn't encounter the multiple errors with the Cyrillic issue. However, it only compiles the code once or twice. After that, any further RUN will end up in "Cannot find JDK 1.8 for module ... " . The only workaround to this has been proved to Empty cache and exit, write and Run again. Then Empty cache and exit, write some more and Run again, repeat Empty cache and exit... This is IMPOSSIBLE.... Why isn't Eclipse acting the same ?! What's wrong with Idea ? Please,if you will, any help... :|


Please sign in to leave a comment.
Most probably, it is caused by Cyrillic characters in the user name.
Is it possible to change the username to check?
Konstantin Annikov, thanks for answering. The Cyrillic username is the Windows-installed username... I did try to change the letters in a Latin alphabet and Idea just ignored it and picked up some old path, stored somewhere in its own memory. Idea simply overrides everything, acting tyrannical. :) The only way I managed to get over THIS mess
was by (several) uninstalling, rebooting, reinstalling Idea in a folder of my choice, avoiding Idea's tyrannical choice of installing itself in a pre-defined location such as C:/Users/Cyrillic username/... and then modifying properties and then running it as Admin. TO NO AVAIL, it seems.
Well, as much as I preferred IntelliJ, I will have to move along, it seems. Because when I'm faced with whether to wipe an 1 TB drive of data and fully functional programs to reinstall Windows in a Latin alphabet username to please IntelliJ Idea and choosing a different IDE, I guess the choice is easy: I will ditch Intellij. However, there are other numerous Cyrillic users who have been or will be faced with such issues. They will probably ditch it too. Well, too bad.
Generally, IntelliJ IDEA is working normally on systems with Cyrillic users. However there are circumstances when it is not. For example, the combination of Cyrillic letters and antivirus, or specific VM options, or JDK revision. That is why excluding Cyrillic symbols from the issue is a general troubleshooting step.
If it is not working for you, you may create a support ticket with logs folder attached.
Thank you, Konstantin. I uninstalled everything from Jet and will not attempt to use it again. Just found 3 other appealing IDEs apart from Eclipse.
I wish you a good day and stay safe, everyone !