Simple Compile problem, XML DOM java file

I have just started reading about the XML DOM which I intend to use in some way.

I am trying to run a java file (DomEcho01.java from the java sun site) and it won't compile for me.

There seems to be problems with using the javax.xml.parsers package.

Why is this? Is there something stupidly small I am missing?

Code (Imports):

import javax.xml.parsers.DocumentBuilder;

import javax.xml.parsers.DocumentBuilderFactory;

import javax.xml.parsers.FactoryConfigurationError;

import javax.xml.parsers.ParserConfigurationException;

import org.xml.sax.SAXException;

import org.xml.sax.SAXParseException;

Command Line errors (there are 14, all similar):

DomEcho01.java:32: cannot resolve symbol

symbol : class DocumentBuilder

location: package parsers

import javax.xml.parsers.DocumentBuilder;

^

DomEcho01.java:33: cannot resolve symbol

symbol : class DocumentBuilderFactory

location: package parsers

import javax.xml.parsers.DocumentBuilderFactory;

^

[1082 byte] By [barzizoua] at [2007-9-27 5:50:49]
# 1
jdk1.4/lib/rt.jar should be in classpath.
dvohra09a at 2007-7-8 8:14:08 > top of Java-index,Developer Tools,Java Compiler...