Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import com.amazonaws cannot be resolved

I'm setting up an Android-based Amazon AWS SimpleDB client in Eclipse (just started). I'm getting an error on the line:

import com.amazonaws.services.simpledb.AmazonSimpleDBClient;

that says "The import com.amazonaws cannot be resolved."

I've already installed the AWS SimpleDB jar file in the lib directory of my project, and added the lib directory to the build path of my project.

How do I get Eclipse to resolve the name in the import statement? Thanks.

like image 828
gcl1 Avatar asked Mar 27 '26 06:03

gcl1


1 Answers

I found the answer to my problem. I think I made an error when adding the lib directory to my build path.

Here's the right way to do it:

Right click Project -> select Properties -> Java Build Path -> Libraries and click Add JARs. Then select the JARs added to the lib directory. Thanks.

like image 97
gcl1 Avatar answered Mar 28 '26 21:03

gcl1



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!