gpt4 book ai didi

java - 无法访问未找到 org.apache.commons.pool2.impl.GenericObjectPoolConfig 的 org.apache.commons.pool2.impl.GenericObjectPoolConfig 类文件

转载 作者:行者123 更新时间:2023-11-30 09:08:51 28 4
gpt4 key购买 nike

我正在编写一个守护程序来获取某些游戏的服务器统计信息。

在编译中我收到一条消息:

cannot access org.apache.commons.pool2.impl.GenericObjectPoolConfigclass file for org.apache.commons.pool2.impl.GenericObjectPoolConfig not found

在这行代码中:

this

enter image description here

最佳答案

将所需的库添加到 commons-pool 的类路径中v2.0

The Apache Commons Pool open source software library provides an object-pooling API and a number of object pool implementations. Version 2 of Apache Commons Pool contains a completely re-written pooling implementation compared to the 1.x series. In addition to performance and scalability improvements, version 2 includes robust instance tracking and pool monitoring.

Version 2.7.x and up requires Java 8 or above.Version 2.6.x requires Java 7 or above.Version 2.5.x requires Java 7 or above.Version 2.0 requires 6 or above.

关于java - 无法访问未找到 org.apache.commons.pool2.impl.GenericObjectPoolConfig 的 org.apache.commons.pool2.impl.GenericObjectPoolConfig 类文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23323413/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com