开发者

User defined library

I am a newbie at J2ME. Recently, I've shifted from Netbeans to Eclipse because of some internal constraints. I am making an App which makes use of a user-defined library.开发者_如何学Go This library has only a jar file. Now, in Netbeans there were no problems. But in eclipse, I am unable to access the classes defined in the jar file included in my library. The exception thrown is java.lang.NoClassDefFoundError. What should I do?


Have you added the jar through:

right click your project > Build Path > Configure Build Path > Add External Jars and select your jar from there?

In case the jar is in your project dir, you can use "Add Jars" (not External).

I assume you have done it, so to the next step:

How are you running your application? In the Run Configurations there is a classpath tab - make sure your jar is present there as well.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜