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

前端 未结 7 1715
梦毁少年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:53

    In case you want to still share the documents & desktop, the solution is to modify the idea.properties file (for instance, under C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1\bin\idea.properties ), and change the following properties to point to different a location that is specific to the OS in which you are working:

    idea.config.path=
    idea.system.path=
    idea.plugins.path=
    idea.log.path=
    

    I also copied the previous folder (on my computer it was under

    \\psf\Home\.IntelliJIdea12
    

    ) to the new location to preserve all settings.

    Update: I had the same problem after I installed IntelliJ Idea 13. I moved the .IntelliJIdea13 folder to c:\Users\costa from \\psf\Home, then I modified the C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.0\bin\idea.properties file:

    idea.config.path=C:/Users/costa/.IntelliJIdea13/config
    idea.system.path=C:/Users/costa/.IntelliJIdea13/system
    idea.plugins.path=C:/Users/costa/.IntelliJIdea13/config/plugins
    idea.log.path=C:/Users/costa/.IntelliJIdea13/system/log
    

提交回复
热议问题