需要设置一下:
右键点你的工程--〉Propertise --〉Required Libraries --> add
在里面选JDOM
点ok,应该就没问题了。

解决方案 »

  1.   

    jdom是一些项目组为了项目的利益而自愿发布的一组API.
      

  2.   

    同意topchx,同时把文件路径"/"改为"\",
    好象路径中不能有中文字,要改为英文。
      

  3.   

    编译的时候下面这句出错:
    Document doc = sb.build(new FileInputStream("exampleA.xml"));错误信息:
    cannot access class org.xml.sax.InputSource; class not found: class org.xml.sax.InputSource at line 13, column 27
      

  4.   

    可能需要xerces.jar,xalan.jar,jdom.jar,jaxp-api.jar,sax.jar其中几个相关的包,特别是是sax.jar吧,去xml.apache.org下载吧。