Troubleshooting

Using the Sun XML Libraries

Q1:Why can't the Java compiler find the XML libraries?
You probably forgot to change the content type to text/xml.
Q2:My program compiles okay, so why does it tell me it can't find the parser?
You must have both jaxp.jar and parser.jar in your classpath. The jaxp.jar file defines the standard interfaces for SAX and DOM but doesn't contain any of the implementation classes. You can compile a program using only jaxp.jar, but when you run the program, you need to include an actual XML parser in the classpath.

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.