Getting NoClassDefFoundError on class known to be in jar in the classpath
Posted on 2009-05-06
I'm learning Restlet by working with a small example application. When I run the app, I get java.lang.NoClassDefFoundError: org/restlet/ext/json/JsonRepresentation. I have org.restlet.ext.json in the subdirectory with my other external jars, including other org.restlet... jars. jar -tf org.restlet.ext.json.jar does in fact have the JsonRepresentation class in it. So, the class is in the jar and the jar is in the manifest Class-Path but the runtime is unable to resolve the class reference.
Any help would be much appreciated.