已经导入jar包,但还是报错,说没有这个模块
报错信息:Error invoking bsh method: eval Sourced file: inline evaluation of: ``import com.allcam.acs.acssdk.model.SDKServiceStub; import com.allcam.acs.acssdk. . . . '' : Typed variable declaration : Void initializer.
Java代码
import com.allcam.acs.acssdk.model.SDKServiceStub;
import com.allcam.acs.acssdk.utils.DigestUtil;
String AUTHORIZATION_QOP_VALUE = "auth";
String DEFAULT_NC = "00000001";
String DEFAULT_CNONCE = "00000001";
String acsUrl = "http://112.13.167.212:10000/uas/v1/api/dev/list";
String username = "allcamtest";
String nonce = ${nonce};
String realm = ${realm};
String password = "Allcam@2019";
String response = DigestUtil.generateResponse(username,
realm,
nonce,
acsUrl,
AUTHORIZATION_QOP_VALUE,
DEFAULT_NC,
DEFAULT_CNONCE,
password,
null);
System.out.println(response);
vars.put("response",response);
导入jar包