How to fix "java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException"

0

I'm following the instructions on https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html

I downloaded DynamoDBLocal. I then tried to run this command and I get this error. I assume that maybe I need to pass in the commons-cli path to java, but the -jar would take precedence. So what do I do?

$ java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
Error: Unable to initialize main class com.amazonaws.services.dynamodbv2.local.main.ServerRunner
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException```
asked 2 years ago58 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions