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```
已提問 2 年前檢視次數 63 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南