Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 51993 invoked from network); 5 Sep 2000 22:59:04 -0000 Received: from relay.lutris.com (63.104.189.21) by locus.apache.org with SMTP; 5 Sep 2000 22:59:04 -0000 Received: (from root@localhost) by relay.lutris.com (8.9.3/8.9.3) id QAA09481 for ; Tue, 5 Sep 2000 16:01:38 -0700 Received: from mail01.lutris.com (mail [63.104.189.54]) by relay.lutris.com (8.9.3/8.9.3) with ESMTP id QAA09394 for ; Tue, 5 Sep 2000 16:01:38 -0700 Received: from lutris.com ([10.10.50.135]) by mail01.lutris.com (Netscape Messaging Server 4.15) with ESMTP id G0FS1D00.6ZD for ; Tue, 5 Sep 2000 16:03:13 -0700 Message-ID: <39B57B57.15BEF52B@lutris.com> Date: Tue, 05 Sep 2000 18:01:43 -0500 From: "Brett McLaughlin" Organization: Lutris Technologies X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: general@xml.apache.org Subject: Re: Trying to use Xerces Java SAX classes References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Bill Halchin wrote: > > Brett and others, > > >Hi Bill. Let's see if we can help you out. Here's what we need: > > > >1) The exact, copied/pasted error, such as: > > > >SAXParserDemo.java:37: Class org.xml.sax.Attributes not found in import. > >import org.xml.sax.Attributes; > > SAXParserDemo.java:2: Class org.xml.sax.XMLReader not found in import > import org.xml.sax.XMLReader; > ^ > > SAXParserDemo.java:4: Class org.apache.xerces.parser.SAXParser not found > in import. > import org.apache.xerces.parser.SAXParser; xerces.jar is deinitely not showing up in your classpath. Try javac -classpath /path/to/xerces.jar SAXParserDemo.java and see if that works. For whatever reason, it's for sure a xerces.jar problem... -Brett > > >... > >... > > > >2) The exact result of 'echo $CLASSPATH' > > /home/bhalchin/FTP/xerces-1_1_3/xerces.jar:/home/bhalchin/FTP/xerces-1_1_3/xercesSamples.jar:/home/bhalchin/FTP/xasd/p7bin > > > > >3) For each path in $CLASSPATH, the result of 'ls ' > > > >So if 'echo $CLASSPATH' results in: > > > >/foo/bar/xerces.jar:/foo/bar > > > >Then you would do: > > > >ls /foo/bar/xerces.jar > > > >ls /foo/bar > > ls /home/bhalchin/FTP/xerces-1_1_3/xerces.jar > /home/bhalchin/FTP/xerces-1_1_3/xerces.jar > > > > >This will ensure that your $CLASSPATH has actual entries that correspond > >to exact files and directories, and that those exist. Once we get that, > >plus the exact class missing, we can help you out. What your classpath > >/should/ look like: > > > >1) if xerces.jar is in /projects/lib/xerces.jar > >2) if SAXBuilderDemo is in /projects/javaxml/SAXBuilderDemo.java > > > >'echo $CLASSPATH' should give you: > > > >/projects/lib/xerces.jar:/projects/javaxml > > > >Remember that in addition to the xerces.jar, you need to have the > >directory with the compiled Java class you are working on. So if you got > >something like: > > > >SAXParserDemo.java:37: Class org.xml.sax.Attributes not found in import. > >import org.xml.sax.Attributes; > > > >This would indicate that xerces.jar is missing from your classpath > >(anything org.xml.sax or org.apache.xerces or org.w3c.dom) > > > >Now if you get things compiled, then you could get errors from not > >having the classes in your 'working directory' in the classpath, and you > >would get an error like: > > > >Exception in thread "main" java.lang.NoClassDefFoundError: SAXParserDemo > > > >Let us know more about what is happening, and we'll get you hooked up > >;-) > > > > > >Thanks, > >Brett > > > > Thnaks, Bill > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > --------------------------------------------------------------------- > In case of troubles, e-mail: webmaster@xml.apache.org > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > For additional commands, e-mail: general-help@xml.apache.org -- Brett McLaughlin, Enhydra Strategist Lutris Technologies, Inc. 1200 Pacific Avenue, Suite 300 Santa Cruz, CA 95060 USA http://www.lutris.com http://www.enhydra.org