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 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则