Idea Maven packing fatal error: you can’t find the package java.lang in the classpath or boot classpath.

Fatal error: software package java.lang cannot be found in classpath or boot classpath.

Change the POM file

Windows(Separator semicolon);

<bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>

 

linux(Separator colon English colon):

<bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>

 

Special thanks: https://blog.csdn.net/skate6/article/details/70597104

Leave a Reply

Your email address will not be published. Required fields are marked *