The following are instructions on how to utilize ESOM(1) Create a directory called "endorsed" in the jre/lib/ Actually, I made double sure and did this to both the JRE in the J2SDK directory and the stand-alone JRE directory that is also installed by the J2SDK. For instance, I created the "endorsed" directory (on windows) in "C:\j2sdk1.4.1_02\jre\lib\endorsed" and "C:\Program Files\Java\j2re1.4.1_02\lib\endorsed" 
(2) Copy jars that contain "endorsed" packages to the new "endorsed" directories. For starters, I'd recommend copying the latest version of Xalan there because j2sdk1.4.x includes an old, buggy version of Xalan and this will override the buggy version. 
是不是你的J2SE1.4的版本问题?

解决方案 »

  1.   

    百思不得其解,重新安装jsdk1.4,仍然如此。jsdk都是从sun站点上download的,怎么会有问题。 难道是classpath?也不象啊。:(
      

  2.   

    import什么问题?import都是标准的package。 org.w3c.dom.*;javax.xml.parser.*...
      

  3.   

    你用java -Xbootclasspath/p:<directories and zip/jar files separated by ;>试一下。
      

  4.   

    这个不行,rt.jar里面已经有xml的package了。apache的package不会被使用。
      

  5.   

    为什么不会?这个参数会将class加到system classloader的最前面。你甚至可以用它覆盖一些jdk的class,我就这么干过。
      

  6.   

    不对不对,从apache上下载的xalan_j_2_6_0,肯定是最新的