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

相关推荐
xzboss10 分钟前
DOM转矢量PDF
前端·javascript
一无所有不好吗10 分钟前
纯前端vue项目实现版本更新(纯代码教程)
前端
萌萌哒草头将军12 分钟前
🏖️ 舒服,原来写代码还可以这么享受😎!沉浸式敲代码神器!
javascript·vue.js·react.js
安全系统学习24 分钟前
内网横向之RDP缓存利用
前端·安全·web安全·网络安全·中间件
Hilaku31 分钟前
为什么我不再相信 Tailwind?三个月重构项目教会我的事
前端·css·前端框架
waterHBO31 分钟前
改写自己的浏览器插件工具 myChromeTools
javascript
FogLetter32 分钟前
JavaScript 的历史:从网页点缀到改变世界的编程语言
前端·javascript·http
鹏北海34 分钟前
Vue3+TS的H5项目实现微信分享卡片样式
前端·微信
轻颂呀36 分钟前
进程——环境变量及程序地址空间
前端·chrome
lyc23333339 分钟前
鸿蒙Stage模型:轻量高效的应用架构「舞台革命」🎭
前端