No worries. To be able to skip the classpath switch, you'll have to create a new environment variable by the name of CLASSPATH and set it to the exactly what you would specify in the classpath switch.
I usually set my CLASSPATH in my .bashrc (I'm using bash shell) to the files that I usually refer to for example: CLASSPATH=/xerces/xerces.jar:. Cheers, Callista On Thu Apr 26 14:19:54 2001 MYT, you wrote: > thankyou! > > That seems to have solved the trick. My .jar files are in the > <xerces-install-dir>/bin directory. > > I'm not sure which environment variable needs to be set so I don't have to > write the classpath switch each time I call a program. > > Thanks again, > Sam > > > > > -----Original Message----- > > From: callista [mailto:[EMAIL PROTECTED] > > Sent: Thursday, 26 April 2001 16:27 > > To: Samantha Savvakis > > Subject: Problems running the samples version 1.3.1 > > > > > > I think what you need to do is to set your classpath. You can do this 2 > > ways. > > 1. set it as an environment variable. I'm not sure how SCO works but the > > following is how you do it for bash shell (assuming your .jar files are in > > xerces-1_3_1 directory: > > export > > 2. specify the classpath when you run the program: > > java -classpath /xerces-1_3_1/xerces.jar:/xerces-1_3_1xercesSamples.jar > > dom.DOMWriter -p dom.wrappers.DOMParser data/personal.xml > > > > Try these. > > > > Cheers, > > Callista > > On Thu Apr 26 12:39:21 2001 MYT, you wrote: > > > Hi, > > > > > > My details are as follows: > > > > > > Operating System: SCO Openserver 5.0.5 > > > JDK 1.2.2-001:2000-Feb-17 green threads, sunwjit > > > Installed Xerces-J 1.3.1 > > > > > > I have tried to run the DOMCount and DOMWriter samples, but I keep > > getting > > > an error. Here is what I typed: > > > > > > java dom.DOMWriter -p dom.wrappers.DOMParser data/personal.xml (as given > > in > > > the documentation) > > > > > > The error I received was: > > > > > > Exception in thread "main" java.lang.NoClassDefFoundError: > > org/w3c/dom/Node > > > > > > I don't know a much about java, but I have found that I have the > > org/w3c/dom > > > java classes installed under <xerces-install-dir>/src/ > > > > > > Looks like a pathing issue. Could someone tell me how I can get it to > > > reference these org classes. > > > > > > Thanks, > > > Sam > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > CLASSPATH=%CLASSPATH%;/xerces-1_3_1/xerces.jar:/xerces-1_3_1/xerce > > sSamples. > > jar > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
