java.lang.NoClassDefFoundError: Expected an initialized class
I believe its coming from the line
- Code: Select all
try {
if(provider == null) {
Criteria crit = new Criteria(); //HERE java.lang.NoClassDefFoundError: Expected an initialized class
provider = LocationProvider.getInstance(crit);
provider.setLocationListener(this, -1, -1, -1);
}
}
catch (LocationException e) {
e.printStackTrace();
provider = null;
}
I found an old forum post sayin it was something to do with the the lapi.jar file and a class path problem?
http://www.velocityreviews.com/forums/t142389-cannot-create-an-instance-of-locationcriteria-class-lapijar-midp-20-j2me.html
I'm using eclipse dev, any ideas?
Please reply in the most lamens terms you can, I dont want to keep saying huh?!
thanks for your time and effort! just ask if you need more info
