【发布时间】:2023-03-07 08:39:01
【问题描述】:
我正在尝试运行一个使用 YouTube 数据 API 的 jar 文件,但其中一个 API 类出现 NoClassDefFoundError:
alt text http://img205.imageshack.us/img205/1808/noclassdeffounderror.png
AuthenticationException.class 在 gdata-core-1.0 jar 中找到:
alt text http://img683.imageshack.us/img683/7329/authenticationexception.png
gdata-core-1.0 jar 已添加到我的类路径中:
alt text http://img24.imageshack.us/img24/2195/classpathe.png
我做错了什么?
【问题讨论】:
-
为什么不使用 Eclipse 进行构建?
-
我是 Eclipse 新手。我正在使用它来自动编译并制作 jar,但在命令提示符下运行 jar。
标签: java eclipse classpath noclassdeffounderror