hello friends, i have a problem. i have created two jar files and i want to use class of one jar file in another jar file consider J1.jar and J2.jar are the two jar files J1.jar file contains C1.class and C2.class J2.jar file contains C3.class and C4.class Now i want C3 object instantiated in C1 when i tried it gave me an exception : "NoSuchClassDefError" reply soon Deepa Raghuraman
As long as both jar files are in your classpath, the classes should be found. Double-check your classpath settings. Make sure both jars are included - you have to actually include the name of each jar file. It's not sufficient to include the directory where the jar files are located.