0

嘿,在尝试运行我的项目时,我在控制台上遇到了完全错误。

Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/JCommander
        at ro.uaic.info.VRPRunner.main(VRPRunner.java:42)
Caused by: java.lang.ClassNotFoundException: com.beust.jcommander.JCommander
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 1 more

我在 pom.xml 文件中添加了 jcommander 依赖项

        <dependency>
            <groupId>com.beust</groupId>
            <artifactId>jcommander</artifactId>
            <version>1.48</version>
        </dependency>
    </dependencies>

你能帮我解决这个错误吗?

4

0 回答 0