i am testing a J2me project when i run it is giving java.lang.NoClassDefFoundError: org/cdac/securitycore/storage/StorageBridge
. I had included a jar file which contains StorageBridge.class
even i checked the class path also
my jar file compiled at 1.5 compilence
& my application is building with 1.3 compilence is this the reason for creating a problem
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
I had the same problem once. It took me hours to figure it out...
From what I remember, Eclipse kind of "has" 2 classpaths: a compile classpath and a runtime classpath. I don't remember where exactly to access both, but I'm pretty sure it's somewhere in the project's properties. Make sure that your JAR file is added to both of them.
But did it contain it as
org/cdac/securitycore/storage/StorageBridge.class
? and does that class contain the statementpackage org.cdac.securitycore.storage;
? Getting either of whose wrong will cause this exception.Perhaps you did not include the .jar correctly. Right click on your project and go to Build Path->Configure Build Path->Add external .jar. Hope that helps.
You should try adding the jars by to the classpath in the following TWO ways:
(you_project) > Properties > Java Build Path > Libraries > Add External JARs...
AND (This is what fixed it for me)
Run > External Tools > External Tools Configurations > Classpath > User Entries > Add External JARs...