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

后端 未结 7 1141
悲哀的现实
悲哀的现实 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:22

    Somehow the JDK language jars were removed from the classpath. All I had to do was reapply the JSDK home path.

    Goto: File -> Project Structure -> Platform Settings -> SDKs Re-apply the JSDK home path.

    Doing this added about 15 jars to the classpath. Apparently these are important for compiling.

提交回复
热议问题