我需要一些帮助,试图使用命令行运行以下maven项目: https://github.com/sarxos/webcam-capture,webcam-capture-qrcode示例是我正在尝试的跑。我使用Eciplse IDE运行它,但需要将其移至仅使用命令行。我有由maven创建的jar。如何使用命令行运行一个maven创建的jar文件
我想
java -classpath ./webcam-capture/target/webcam-capture-0.3.10-SNAPSHOT.jar com.github.sarxos.webcam.WebcamQRCodeExample
,但我不断收到
Exception in thread "main" java.lang.NoClassDefFoundError: com/github/sarxos/webcam/WebcamQRCodeExample
Caused by: java.lang.ClassNotFoundException: com.github.sarxos.webcam.WebcamQRCodeExample
只有在罐子里有清单才有效;在这种情况下没有。谢谢你。 – Oujk 2013-04-08 05:12:08
maven jar不包含依赖关系 – 2016-04-02 19:34:48