[jdom-interest] strange error

Nathan Kufner nkufner at mn.rr.com
Sun Aug 18 22:06:08 PDT 2002


So this is the output of a Test file I made.  The classpath prints and then when the following code executes and I get an error:



....

Document doc = null;
  try{
   SAXBuilder builder = new SAXBuilder(true);                    //error occurs here
   doc = builder.build(new ByteArrayInputStream(xml));
  }

....



Here is the output:



C:\j2sdk1.4.1\lib;.;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\j2sdk1.4.1\jre\lib\ext\sunjce_provider.jar;C:\j2sdk1.4.1\jre\lib\security\local_policy.jar;C:\j2sdk1.4.1\jre\lib\security\US_export_policy.jar;C:\jdom-b8\build\jdom-jdk11.jar;C:\jdom-b8\build\jdmo.jar;C:\jdom-b8\lib\xerces.jar



Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/java/util/collections/HashMap
        at org.jdom.input.SAXBuilder.<init>(SAXBuilder.java)
        at Test.main(Test.java:36)




I have never heard of and can't find that directory, and the SAXBuilder source only refers to the java/util/HashMap.  If anybody can help I would appreciate it very much, because I'm stumped... 



Thanks,

Nathan Kufner

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020819/a3c04bc2/attachment.htm


More information about the jdom-interest mailing list