jmeter5.4.1源码编译(IDEA)问题解决

问题现象:最近想更深入的研究下jmeter5.4.1的原理及功能具体实现,从官网down了个源码,在本地使用IDEA工具导入项目、编译时,报以下错误:

class jdk.internal.loader.ClassLoadersPlatformClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoadersPlatformClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')

class jdk.internal.loader.ClassLoadersPlatformClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoadersPlatformClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)

Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

最后经过多轮尝试解决,解决办法如下(仅供参考):

1、更换JDK版本。JDK11 更换为JDK8(具体版本1.8.0_291)

2、GRADLE版本及IDEA中配置。

1)GRADLE版本:

注:最初使用GRADLE7.6版本,发现还报错。重新下载了新版本8.1.1,然后没问题了。

2)IDEA中配置GRADLE配置。

相关推荐
西贝爱学习15 分钟前
如何在 IntelliJ IDEA 中进行全局替换某个字段(或文本)
java·ide·intellij-idea
梦鱼17 分钟前
Vue 项目图标一把梭:Iconify 自用小记(含 TS/JS 双版本组件)
前端·javascript·vue.js
best66618 分钟前
Flex 与 Grid 的 order 参数:布局界的 "插队神器"
前端
小噔小咚什么东东18 分钟前
看到了很多次WebRTC,但是你真的需要它吗?
前端·webrtc
猫七先生19 分钟前
微信小程序一键登录可行性方案
前端·微信小程序
alf_cee19 分钟前
通过Idea 阿里插件快速部署java jar包
java·ide·intellij-idea
维他AD钙19 分钟前
前端开发 8 个非常实用小技巧:高效解决日常开发痛点
前端
光影少年24 分钟前
webpack和vite优化方案都有哪些
前端·webpack·node.js
给月亮点灯|25 分钟前
Vue基础知识-脚手架开发-初始化目录解析
前端·javascript·vue.js
kk不中嘞28 分钟前
Webpack 核心原理剖析
前端·webpack·node.js