[英]Class from AWS JDK can't be found
I'm trying to use the following code: 我正在尝试使用以下代码:
AmazonSQS amazonSqs = new AmazonSQSClient(new ClasspathPropertiesFileCredentialsProvider());
I have the java sdk in my pom.xml
file: 我的
pom.xml
文件中包含Java sdk:
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>LATEST</version>
</dependency>
But it won't let me build my java application, and produces the following error: 但这不会让我构建我的Java应用程序,并产生以下错误:
Error creating bean with name 'videoTranscoderService' defined in file
[XXX/VideoTranscoderService.class]: Instantiation
of bean failed; nested exception is java.lang.NoClassDefFoundError:
com/amazonaws/ClientConfigurationFactory: com.amazonaws.ClientConfigurationFactory
-> [Help 1]
I just can't understand how it can't find the class ClientConfigurationFactory
because it should be included in the Java SDK right? 我只是不明白如何找不到类
ClientConfigurationFactory
因为它应该包含在Java SDK中,对吗? I appreciate any help you guys can give me to solve this! 我感谢你们能给我解决的任何帮助!
com.amazonaws.ClientConfigurationFactory位于aws-java-sdk-core内部,您需要将其添加到pom.xml中的依赖项列表中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.