I'm coding a Java application using Netbeans. The database is hosted in DynamoDB (Amazon Web Services). I have downloaded the .jar file (aws-java-sdk-1.3.6.jar) from the Amazon website and tried to add it to my project. However, it is not working. I have followed the usual steps to add a .jar to a project (Tools -> Library -> New Library -> Add JAR/Folder). However, it does not seem to work. The imports I need to code the access to the DB are not recognised. I get the error "package com.amazonaws does not exist".
我正在使用Netbeans编写Java应用程序。该数据库托管在DynamoDB(Amazon Web Services)中。我从亚马逊网站下载了.jar文件(aws-java-sdk-1.3.6.jar),并尝试将其添加到我的项目中。但是,它不起作用。我按照通常的步骤将.jar添加到项目中(工具 - >库 - >新库 - >添加JAR /文件夹)。但是,它似乎不起作用。我无法识别代码访问DB所需的导入。我收到错误“包com.amazonaws不存在”。
I have added other libraries (Xerces, for instance) following that method and used them without any problem. However, I am not able to make that one work.
我已经在该方法之后添加了其他库(例如Xerces)并且没有任何问题地使用它们。但是,我无法做到这一点。
Any help or suggestion will be very appreciated!!
任何帮助或建议将非常感谢!!
Thanks!
Laura
1 个解决方案
#1
0
If you are limited to Netbeans try to follow the steps taken in response here: AWS SDK on Netbeans
如果您仅限于Netbeans,请尝试按照此处的响应步骤进行操作:Netbeans上的AWS SDK
Another option is switch to Eclipse and use the Eclipse toolkit for AWS: AWS Toolkit for Eclipse
另一个选择是切换到Eclipse并使用适用于AWS的Eclipse工具包:AWS Toolkit for Eclipse
#1
0
If you are limited to Netbeans try to follow the steps taken in response here: AWS SDK on Netbeans
如果您仅限于Netbeans,请尝试按照此处的响应步骤进行操作:Netbeans上的AWS SDK
Another option is switch to Eclipse and use the Eclipse toolkit for AWS: AWS Toolkit for Eclipse
另一个选择是切换到Eclipse并使用适用于AWS的Eclipse工具包:AWS Toolkit for Eclipse