Dynamodb Client For Mac

Active1 year, 4 months ago
  1. Curse Client For Mac

Set up a DynamoDB client Follow the steps described in the AWS DynamoDB SDK for iOS Getting Started Guide to set up DynamoDB access from your app. You do not need to set up an Object Mapper Client or define Mapping Classes as described in the document, but set up an example DynamoDB table.

I'm trying to run DynamoDB local on a MAC.The Amazon official blog says I have to download the jar file and run the following command:

But I got the following error on MAC OS X terminal:

Error: Could not find or load main class –Djava.library.path=.

Wut? The command seams not to recognise the -D parameter.. why?

I'm also working on Linux (Fedora) and I never had any problem with it.

On MAC OS X, java -version gives me java version '1.8.0_11'

What could be the problem? (I don't know that much with java commands)

Edit 1: Thanks to @Swapnil, we can notice that there is a typo error on the Amazon blog, they used a wrong dash character (EN DASH unicode U+2013) for the -D argument. Note that the Amazon documentation (not the blog) does not have the typo error and also refers to an up-to-date binary.

Edit 2: With the correct dash, the argument is interpreted by java, but I still got a (different) error message during runtime:

SEVERE: [sqlite] SQLiteQueue[AKID_eu-west-1.db]: error running job queue com.almworks.sqlite4java.SQLiteException: [-91] cannot load library: java.lang.UnsatisfiedLinkError: no sqlite4java-osx-x86_64 in java.library.path

I fixed it like that:

It's now finally working... Amazon documentation have some problems..

Yves M.
Yves M.Yves M.
20.3k14 gold badges75 silver badges107 bronze badges

4 Answers

The below seems to work for me on my Mac OS X -

Well, the dash character you've used in –D seems to be a different character altogether. That's probably causing the problem.

SwapnilSwapnil
6,8173 gold badges32 silver badges55 bronze badges

For Mac, it might work without -Djava.library.path option. Try the following command:

Also, the link to the download in the blog does not point to the latest DynamoDB Local version. You can get the latest version from here. This link is also present in the AWS Documentation.

Thanks.

Aanchal GuptaAanchal Gupta

Along with setting the -Djava.library.path=./DynamoDBLocal_lib/ I had to copy libsqlite4java-osx-10.4.jnilib to libsqlite4java-osx-x86_64.dylib.

Yves M.
20.3k14 gold badges75 silver badges107 bronze badges
brian kirkbybrian kirkby

I had to change two things:set up -Djava.library.path=./DynamoDBLocal_lib/

and change the the library name from libsqlite4java-osx to libsqlite4java-osx-x86_64

Yves M.
Run dynamodb locally
20.3k14 gold badges75 silver badges107 bronze badges
GregGreg

Curse Client For Mac

Not the answer you're looking for? Browse other questions tagged javamacosamazon-web-servicesterminalamazon-dynamodb or ask your own question.