我需要一些帮助尝试使用命令行运行以下maven项目:https: //github.com/sarxos/webcam-capture,webcam-capture-qrcode示例是我正在尝试运行的那个.我使用Eciplse IDE运行它,但需要将其移动到仅使用命令行.我有由maven创建的jar.
我尝试着
java -classpath ./webcam-capture/target/webcam-capture-0.3.10-SNAPSHOT.jar com.github.sarxos.webcam.WebcamQRCodeExample
Run Code Online (Sandbox Code Playgroud)
但我一直在接受
Exception in thread "main" java.lang.NoClassDefFoundError: com/github/sarxos/webcam/WebcamQRCodeExample
Caused by: java.lang.ClassNotFoundException: com.github.sarxos.webcam.WebcamQRCodeExample
Run Code Online (Sandbox Code Playgroud)