*
The moose likes XML and Related Technologies and the fly likes Trouble setting up and running Xerces-2_6_2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Trouble setting up and running Xerces-2_6_2" Watch "Trouble setting up and running Xerces-2_6_2" New topic
Author

Trouble setting up and running Xerces-2_6_2

Jyotsna Clarkin
Ranch Hand

Joined: Jan 26, 2001
Posts: 158
I am having trouble setting up and running Xerces-2_6_2 on my Windows XP machine. I have followed the installation instruction on apache.org site, worked through installation tutorials on the web, searched this forum & other websites for solutions but am still stuck.

I would truly appreciate any help. Thanks.

Here at the current settings on my system

OS: Windows XP
Java installation:
Sun�s j2sdk1.4.2_07
PATH=c:\Windows\system32;C:\Windows\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;c:\j2sdk1.4.2_07\bin
(Path set as a System Variable)
JAVA_HOME= c:\j2sdk1.4.2_07
(JAVA_HOME set as User variable)

I am able to compile and run Java programs with this setup.

Installing Xerces-2_6_2
Download Xerces-J-bin 2_6_2.zip
Unpacked the zip files into: c:\xerces-2_6_2

Running Xerces
Launch the Command Prompt and change to the Xerces-2_6_2 directory
Set the CLASSPATH:
set CLASSPATH=c:\xerces-2_6_2\xercesImpl.jar; c:\xerces-2_6_2\xmlParserAPIs.jar; c:\xerces-2_6_2\xml-apis.jar; c:\xerces-2_6_2\xercesSamples.jar;.;%classpath%

Copy an XML File named "intro.xml" and place inside xerces-2_6_2 folder:
<?xml version = "1.0"?>
<myMessage>
<message>First XML Parser Program</message>
</myMessage>
Step 06 - Run the sample sax program named "Counter":
c:\>xerces-2_2_6\java sax.Counter intro.xml
I get these results:
Exception in thread �main� java.lang.NoClassDefFoundError sax/Counter

Not sure what to do from here??
Soumen Basu
Greenhorn

Joined: Apr 13, 2005
Posts: 1
In the section Running Xerces, you defined the classpath as follows:
set CLASSPATH=c:\xerces-2_6_2\xercesImpl.jar; c:\xerces-2_6_2\xmlParserAPIs.jar; c:\xerces-2_6_2\xml-apis.jar; c:\xerces-2_6_2\xercesSamples.jar;.;%classpath%


(I am not sure if this beloved forum code is inserting spaces on my or your behalf, but, in your message it sure looked like you had a space in your classpath, before the xmlParserAPIs.jar entry.
 
 
subject: Trouble setting up and running Xerces-2_6_2