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

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

class jdk.internal.loader.ClassLoaders$PlatformClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$PlatformClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
class jdk.internal.loader.ClassLoaders$PlatformClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$PlatformClassLoader 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配置。

相关推荐

  1. 解决qt5.12.12编译没有libqxcb的问题

    2024-04-23 07:48:02       16 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-23 07:48:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-23 07:48:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-23 07:48:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-23 07:48:02       20 阅读

热门阅读

  1. I fumo 星(STL,数学)

    2024-04-23 07:48:02       18 阅读
  2. Nginx四层负载均衡

    2024-04-23 07:48:02       27 阅读
  3. CSS3 transition过渡:打造流畅动画效果的全面指南

    2024-04-23 07:48:02       34 阅读
  4. 天星金融消保课堂开讲,金融健康意识再提升

    2024-04-23 07:48:02       16 阅读
  5. 说说redis的集群的原理吧

    2024-04-23 07:48:02       15 阅读
  6. redis 无占用 两种方式 清除大批量数据 lua脚本

    2024-04-23 07:48:02       13 阅读
  7. gitlab上传新创建的工程项目

    2024-04-23 07:48:02       60 阅读
  8. MySQL-数据目录

    2024-04-23 07:48:02       45 阅读
  9. 2007. 从双倍数组中还原原数组

    2024-04-23 07:48:02       17 阅读
  10. 微服务(学习)

    2024-04-23 07:48:02       16 阅读
  11. 介绍下volatile关键字

    2024-04-23 07:48:02       13 阅读
  12. npm包管理器

    2024-04-23 07:48:02       27 阅读