Sobre o problema original, no faq encontra se a seguinte solução:
I'm getting a "cannot access java.lang.NoClassDefFoundError class file for java.lang.NoClassDefFoundError not foundjava.lang.NoClassDefFoundError" error when executing Floggy. What is happening?
This is not a Floggy problem! This problem is correlated to a transformation that compilers do when reach a Java's language construction like this Class personClass= Person.class. What happens is that the compiler transform this construction into a try/catch block which catches a java.lang.NoClassDefFoundError so when the compiler tries to check the class java.lang.NoClassDefFoundError against the CLDC-1.0 classpath it detects that this class doesn't exist, throwing the error that you are getting. There are two ways to avoid this. The first one is instead of using the construction Class personClass= Person.class you must use Class personClass= Class.forName("Person");. The other one is switch to the CLDC-1.1 configuration.