Siow Gee Peow wrote: of course as with any other java program! i suggest you use the commandline option -cp of the jvm telling the machine where to look for classes here, the kxml classes, something like this: on Unix/Linux java -cp /java/kxml:/java/yourApp yourPackage.yourClassWithMain on Windows java -cp c:\java\kxml;\java\yourApp yourPackage.yourClassWithMain best regards Olaf > > now i am writing a program to read a xml file, i can compile the java > file successfully. > > but when i run the class file, the system give me this error > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/kxml/io/AbstractXmlReader > > do i need to set any classpath when run the program?? > > > > ---------------------------------------------------------------------- > Do You Yahoo!? > Yahoo! Greetings - Send FREE e-cards for every occasion! |