在这里我使用了阿里云的姿态检测库,但从开始运行时抛出java.lang.NoClassDefFoundError错误导致无法运行:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/conn/HttpClientConnectionManager
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.aliyuncs.http.HttpClientFactory.buildClient(HttpClientFactory.java:35)
at com.aliyuncs.DefaultAcsClient.<init>(DefaultAcsClient.java:77)
at com.aliyuncs.DefaultAcsClient.<init>(DefaultAcsClient.java:66)
at com.HUST_fighting.start.Main.main(Main.java:22)
Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.HttpClientConnectionManager
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more
这个错误在网上找了半天没有解决方法。据说是编译时找不到指定类
求大佬找出问题并提供解决建议,以下是源码:
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.facebody.model.v20191230.BodyPostureRequest;
import com.aliyuncs.facebody.model.v20191230.BodyPostureResponse;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
public class Main {
static IAcsClient client = null;
public static void main(String[] args) throws ServerException, ClientException {
DefaultProfile profile = DefaultProfile.getProfile(
"cn-shanghai", //默认
"xxxxx", //Access Key 已隐藏
"xxxxx");
client = new DefaultAcsClient(profile);
bodyTest();
public static void bodyTest() throws ServerException, ClientException {
BodyPostureRequest body = new BodyPostureRequest();
body.setImageURL("https://viapi-test.oss-cn-shanghai.aliyuncs.com/test-team/bodyp.jpg");
BodyPostureResponse bodyp = client.getAcsResponse(body);
System.out.println(bodyp);
以下是引用的库:
遇到了同样的问题,在CSDN看到了,希望阿里云团队能够给出正确、标准的答案~请查看
企业邮箱发送邮件时,若出现投递失败产生退信,内容提示包含如下: the mta server of * reply:550 failed to meet SPF requirements 或者 the mta server of 163.com — 163mx01.mxmail.netease.com(220.181.14.141) reply:550 MI:SPF mx14,QMCowECpA0qTiftVaeB3Cg—.872S2 1442548128 http://mail.163.com/help
299177