NoClassDefFoundError
作者:互联网
记录一次NoClassDefFoundError报错
/**
* 运行转换
*
* @param transMeta
* @throws KettleException
*/
private static void runTrans(TransMeta transMeta) throws KettleException {
Trans trans = new Trans(transMeta);
//执行转换
trans.execute(null);
//等待转换执行结束
trans.waitUntilFinished();
}
这是一段关于kettle通过RestClient调用接口的代码,大概异常如下
java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig
这里异常信息提示没有找到ClientConfig类,所以只需要导入该类所在的jar包即可
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.19.4</version>
</dependency>
标签:ClientConfig,sun,NoClassDefFoundError,transMeta,trans,jersey 来源: https://blog.csdn.net/weixin_49734812/article/details/121033250