Search code examples
java-meclasspathjsr75

PIM NoClassDefFoundError but the jar is in the classpath


I am implementing the PIM API in my J2ME app when I run it on the KEmulator or on the device (Sony Ericsson k800i) I am getting this exception

java.lang.NoClassDefFoundError: javax/microedition/pim/PIMException

though the jar file has the PIMException.class file inside the javax/microedition/pim package.


Solution

  • Well the problem is solved, all i needed to do is add the JSR api as refrence library.