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配置。

相关推荐
weixin1997010801610 分钟前
《XMZ 商品详情页前端性能优化实战》
前端·性能优化
ThridTianFuStreet小貂蝉22 分钟前
面试题2、讲一讲JS运行机制、微任务、宏任务、事件循环
javascript
happymaker062640 分钟前
vue中对list的函数处理方式总结,以及常见功能的实现方法
javascript·vue.js·list
还是大剑师兰特41 分钟前
vueup/vue-quill 详细介绍(Vue3 富文本编辑器)
javascript·vue.js·ecmascript
蜡台1 小时前
Uniapp H5Builderx 预览Html 显示404问题解决
前端·uni-app
threelab1 小时前
引擎案例分析 02|GeoLayer 大厂地理可视化方案深度拆解
javascript·3d·webgl
We་ct1 小时前
LeetCode 190. 颠倒二进制位:两种解法详解
前端·算法·leetcode·typescript
踩着两条虫1 小时前
AI驱动的Vue3应用开发平台深入探究(二十五):API与参考之Renderer API 参考
前端·javascript·vue.js·人工智能·低代码·前端框架·ai编程
信创DevOps先锋1 小时前
本土化突围:Gitee如何重新定义企业级项目管理工具价值
前端·gitee·jquery