title: Dynamodb local setup on M1 apple silicon mac
body: <p>I did a local setup of dynamodb using <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html" rel="noreferrer">https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html</a></p>
  <p>I am able to start the instance using the following command <code>java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb</code> but when i try to do anything else it gives me the following error.</p>
  <blockquote>
  <p>Mar 15, 2021 2:10:28 PM com.almworks.sqlite4java.Internal log
  WARNING: [sqlite] cannot open DB[15]: com.almworks.sqlite4java.SQLiteException: [-91] cannot load library: java.lang.UnsatisfiedLinkError: /Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib: dlopen(/Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib, 1): no suitable image found.  Did find:
  /Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib: no matching architecture in universal wrapper
  /Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib: no matching architecture in universal wrapper
  Mar 15, 2021 2:10:28 PM com.almworks.sqlite4java.Internal log
  SEVERE: [sqlite] SQLiteQueue[shared-local-instance.db]: error running job queue
  com.almworks.sqlite4java.SQLiteException: [-91] cannot load library: java.lang.UnsatisfiedLinkError: /Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib: dlopen(/Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib, 1): no suitable image found.  Did find:
  /Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib: no matching architecture in universal wrapper
  /Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib: no matching architecture in universal wrapper
  at com.almworks.sqlite4java.SQLite.loadLibrary(SQLite.java:97)
  at com.almworks.sqlite4java.SQLiteConnection.open0(SQLiteConnection.java:1441)
  at com.almworks.sqlite4java.SQLiteConnection.open(SQLiteConnection.java:282)
  at com.almworks.sqlite4java.SQLiteConnection.open(SQLiteConnection.java:293)
  at com.almworks.sqlite4java.SQLiteQueue.openConnection(SQLiteQueue.java:464)
  at com.almworks.sqlite4java.SQLiteQueue.queueFunction(SQLiteQueue.java:641)
  at com.almworks.sqlite4java.SQLiteQueue.runQueue(SQLiteQueue.java:623)
  at com.almworks.sqlite4java.SQLiteQueue.access$000(SQLiteQueue.java:77)
  at com.almworks.sqlite4java.SQLiteQueue$1.run(SQLiteQueue.java:205)
  at java.base/java.lang.Thread.run(Unknown Source)
  Caused by: java.lang.UnsatisfiedLinkError: /Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib: dlopen(/Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib, 1): no suitable image found.  Did find:
  /Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib: no matching architecture in universal wrapper
  /Users/ahsanejaz/Downloads/dynamodb_local_latest/DynamoDBLocal_lib/libsqlite4java-osx.dylib: no matching architecture in universal wrapper
  at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
  at java.base/java.lang.ClassLoader$NativeLibrary.load(Unknown Source)
  at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(Unknown Source)
  at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)
  at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
  at java.base/java.lang.Runtime.load0(Unknown Source)
  at java.base/java.lang.System.load(Unknown Source)
  at com.almworks.sqlite4java.Internal.tryLoadFromPath(Internal.java:340)
  at com.almworks.sqlite4java.Internal.loadLibraryX(Internal.java:117)
  at com.almworks.sqlite4java.SQLite.loadLibrary(SQLite.java:95)
  ... 9 more
  Mar 15, 2021 2:10:28 PM com.almworks.sqlite4java.Internal log
  WARNING: [sqlite] SQLiteQueue[shared-local-instance.db]: stopped abnormally, reincarnating
  in 3000ms</p>
  </blockquote>
  <p>Is this issure related to new M1 Apple Silicon architecture? Any workaround for this?</p>