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 分钟前
前端周刊第421期(2025年7月1日–7月6日)
前端·面试·github
摸鱼仙人~18 分钟前
深入理解 classnames:React 动态类名管理的最佳实践
前端·react.js·前端框架
未来之窗软件服务20 分钟前
chrome webdrive异常处理-session not created falled opening key——仙盟创梦IDE
前端·人工智能·chrome·仙盟创梦ide·东方仙盟·数据调式
kymjs张涛20 分钟前
零一开源|前沿技术周报 #6
前端·ios·harmonyos
玲小珑24 分钟前
Next.js 教程系列(十)getStaticPaths 与动态路由的静态生成
前端·next.js
天天鸭30 分钟前
写个vite插件自动处理系统权限,降低99%重复工作
前端·javascript·vite
蓝婷儿34 分钟前
每天一个前端小知识 Day 23 - PWA 渐进式 Web 应用开发
前端
无奈何杨44 分钟前
CoolGuard风控中新增移动距离和移动速度指标
前端·后端
恋猫de小郭1 小时前
Google I/O Extended :2025 Flutter 的现状与未来
android·前端·flutter
江城开朗的豌豆1 小时前
Vue-router方法大全:让页面跳转随心所欲!
前端·javascript·vue.js