Classpath entry points to a non-existent location:D:libjavajdk8jrelibextaccess-bridge-32.jar

错误情况

Error:Kotlin:warnings found and -Werror specified
Classpath entry points to a non-existent location:D:libjavajdk8jrelibextaccess-bridge-32.jar
Classpath entry points to a non-existent location:D:libjavajdk8jrelibextaccess-bridge.jar

我在编译Spring源码的时候,遇到的这个报错信息。
看到这个错误我是十分纳闷的,花费了我整整一下午加晚上的时间。
最最最不能理解的是我用的JDK是64位的,怎么会去找32位的 access-bridge-32.jar ???

最终解决:

后来我分析了一下,我原本是1.8对应的是一个32位的JDK,然后,由于编译源码不成功,我升级自己的 JDK8(https://github.com/spring-projects/spring-framework/wiki/Build-from-Source):

原因是要求 JDK8 262 以上。
我从镜像站下载后:https://mirrors.tuna.tsinghua.edu.cn/AdoptOpenJDK/8/jdk/x64/windows/

我一开始是在没有删除原本的1.8的情况下,直接1.8修改了 JDK home path 为新的 JDK 路径。最终导致了这个错误

尝试

有人说要升级 Kotlin 插件:

我也尝试升级了,但是没有直接解决我的问题。有需要的可以试试。

原文地址:https://www.cnblogs.com/kendoziyu/p/classpath-entry-points-to-a-non-existent-location.html