IntelliJ gives Fatal Error: Unable to find package java.lang in classpath or bootclasspath

后端 未结 7 1144
悲哀的现实
悲哀的现实 2020-12-02 13:54

When I try to make a simple module in IntelliJ it responds with:

Fatal Error: Unable to find package java.lang in classpath or bootclasspath
7条回答
  •  感情败类
    2020-12-02 14:26

    In Intellij Community 2019.1, this is what I did to solve the issue

    • Project Structure > Platform Settings > SDKs
    • Removed all existing SDKs listed ( I had multiple SDK listed there)
    • Add the required SDK only and Apply

提交回复
热议问题