[jdom-interest] org.w3c.dom.Document not found

Sebouh sebouh at dcsoftintl.com
Mon Jan 15 06:15:01 PST 2001


Hi All

i have jdom-b5 on my pc, my system
CLASSPATH="F:\jdom-b5\build;F:\jdom-b5\build\jdom.jar;"

i have this example

import java.io.*;
import org.jdom.*;
import org.jdom.input.*;
import org.jdom.output.*;


public class EchoXML
{
    public static void main( String[] args )
    {
	try {
		DOMBuilder dom = new DOMBuilder();
		Document doc = dom.build (new File ("web.xml"));
		XMLOutputter xmlout = new XMLOutputter("%%%%%");
		xmlout.setTrimText(true);
		xmlout.setIndent(false);
		xmlout.output (doc, System.out);
	}
	catch (Exception ex) {
		ex.printStackTrace();
	}
    }
}


when i compile this code, i'll get the following error:
EchoXML.java:18: Class org.w3c.dom.Document not found in void
main(java.lang.String[]).
		Document doc = dom.build (new File ("web.xml"));
1 error



<Signature>
  <Name> Sebouh Hatsakordzian </Name>
  <Job Title> Software Engineer </Job Title>
  <Company> DC Soft SAL </Company>
  <Telephone> +961-1-385425 </Telephone>
  <Fax> +961-1-385428 </Fax>
  <Mailbox> 11-0337 </Mailbox>
  <City> Beirut </City>
  <Country> Lebanon </Country>
  <Email> mailto:sebouh at dcsoftintl.com </Email>
  <URL> http://www.dcsoftintl.com </URL>
</Signature>




More information about the jdom-interest mailing list