That is exactly what I am doing. However it does not seem to help.

Thanks
Aspi

-----Original Message-----
From: Krishna Vemuri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 04, 2001 2:41 PM
To: [EMAIL PROTECTED]
Subject: RE: HELP - Class not found: org.apache.xerces.parsers.SAXParser


This exception usually occurs, only if your CLASSPATH setting is kind of
whacked, instead of putting the CLASSPATH var at the java command level,
why don't you create a batch file, which has the following setting in
it:

set path=<jdk-installation-dir>\bin
set
classpath=<jdk-installation-dir>\jre\lib\jre\rt.jar;c:\aspi\dnload\xerce
s-1_3_1\xerces.jar;c:\aspi\dnload\xerces-1_3_1\xercesSamples.jar 

save it as something like app_classpath.bat , run this on the DOS
prompt, on which you want to run the standalone app & then do a 

java sax.SAXCount data/personal.xml

Hope this helps.

K

-----Original Message-----
From: Aspi D. Engineer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 04, 2001 10:35 AM
To: [EMAIL PROTECTED]
Subject: HELP - Class not found: org.apache.xerces.parsers.SAXParser


Hi,

I am unable to solve this for a long time now. I am trying to run the
sample
program "sax.SAXCount" and keep getting the following error:

java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:124)
        at
org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:129)
        at sax.SAXCount.print(SAXCount.java:128)
        at sax.SAXCount.main(SAXCount.java, Compiled Code)

Al that I have done so far is install xerces-1.3.1. Like the
documentation
on the Apache site says (http://xml.apache.org/xerces-j/domcount.html),
I
have created a batch file as follows:

cd c:\aspi\dnload\xerces-1_3_1
java -cp
c:\aspi\dnload\xerces-1_3_1;c:\aspi\dnload\xerces-1_3_1\xerces.jar;c:\as
pi\d
nload\xerces-1_3_1\xercesSamples.jar  sax.SAXCount data/personal.xml

Note that Xerces is installed in "c:\aspi\dnload\xerces-1_3_1"

WHAT AM I DOING WRONG? I know its something stupid.

Thanks
Aspi Engineer
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to