intellij - java: Cannot find JDK '1.7' for module

前端 未结 7 1853
梦毁少年i
梦毁少年i 2020-12-20 12:23

I\'ve just installed IntelliJ on Windows 8 (and 7). I then use the \'Java Hello World\' Sample as my project.

I then selected the JDK that was installed (C:\\Program

7条回答
  •  一向
    一向 (楼主)
    2020-12-20 12:49

    It seems that sometimes Intellij (or the user:-)) is getting confused when importing settings, especially if you change the paths where the jdk resides (for me it happened during a migration to a new Linux environment).

    The only way I could correct this was to delete the user's settings folder.

    In Linux :

    I removed the folder (and subfolders): ~/.IntelliJIdea12/

    Of course this would remove the saved settings, licenses e.t.c.

提交回复
热议问题