开发者

NoClassDefFoundError for a packaged class

开发者 https://www.devze.com 2023-01-04 04:48 出处:网络
I\'m trying to run a开发者_Go百科 jar file that uses the YouTube Data API and I\'m getting a NoClassDefFoundError for one of the API classes:

I'm trying to run a开发者_Go百科 jar file that uses the YouTube Data API and I'm getting a NoClassDefFoundError for one of the API classes:

alt text http://img205.imageshack.us/img205/1808/noclassdeffounderror.png

AuthenticationException.class is found in the gdata-core-1.0 jar:

alt text http://img683.imageshack.us/img683/7329/authenticationexception.png

The gdata-core-1.0 jar has been added to my classpath:

alt text http://img24.imageshack.us/img24/2195/classpathe.png

What am I doing wrong?


Perhaps you may not be having the jar in the classpath. The command prompt execution does not set the classpath. You will have to either do it by yourselves or give it on the fly while executing.

You should probably take a look at setting the MANIFEST file correct for the JAR file.

This post has a better description

0

精彩评论

暂无评论...
验证码 换一张
取 消