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. 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?
I am a newbie at J2ME. Recently, I’ve shifted from Netbeans to Eclipse because
Share
Have you added the jar through:
right click your project > Build Path > Configure Build Path > Add External Jarsand 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 Configurationsthere is aclasspathtab – make sure your jar is present there as well.