Chris Brown was correct.  You need to understand how the Classpath works.

Instead of
CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples

1) Locate the xalan.jar and ensure that it is in your classpath:

You will have to do this for all jar files from which you wish to have
classes loaded.

2) You do not need to include  d:\Program Files\jdk1.3  in your classpath.
It does nothing for you, unless you have compiled classes of your own there.
As of jdk1.2.2 the java classloader automatically loads the essential java
classes.  Likewise, d:\Program
Files\jsdkee1.3  will not give you any benefit . . .there are no class files
located there!

3) I do not like to have spaces in my classpath so you might consider moving
your java-related files to a simpler and consistent directory - maybe
d:\java
your classpath would then look something like this:

CLASSPATH=d:\java\jsdkee1.3\lib\j2ee.jar;d:\java\ant\lib\ant.jar;d:\java\ant
\lib\jaxp.jar;d:\java\ant\lib\parser.jar;d:\java\junit3.6\junit.jar;d:\java\
xalan\xalan.jar

NB:  you must include the bin directory of your java installation in your
PATH environment variable  eg:
PATH=d:\java\jdk1.3\bin

HTH

owen.



-----Original Message-----
From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Testing Xalan prior to STRUTS build


HELP!! Does anyone have a suggestion!

-----Original Message-----
From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 12:22 PM
To: Struts-User@Jakarta. Apache. Org (E-mail)
Subject: Testing Xalan prior to STRUTS build


I am getting this problem when testing to make sure Xalan works by using the
SimpleTranform sample.  I've checked the classpath already.  Whatelse can I
check.

CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples

COMMAND ERROR MSG:
D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java
SimpleTransform.java:58: cannot resolve symbol
symbol  : class SAXException
location: package sax
import org.xml.sax.SAXException;
                   ^
SimpleTransform.java:59: cannot resolve symbol
symbol  : class XSLTProcessorFactory
location: package xslt
import org.apache.xalan.xslt.XSLTProcessorFactory;
                             ^
SimpleTransform.java:60: cannot resolve symbol
symbol  : class XSLTInputSource
location: package xslt
import org.apache.xalan.xslt.XSLTInputSource;
                             ^
SimpleTransform.java:61: cannot resolve symbol
symbol  : class XSLTResultTarget
location: package xslt
import org.apache.xalan.xslt.XSLTResultTarget;
                             ^
SimpleTransform.java:62: cannot resolve symbol
symbol  : class XSLTProcessor
location: package xslt
import org.apache.xalan.xslt.XSLTProcessor;
                             ^
SimpleTransform.java:68: SimpleTransform clashes with package of same name
public class SimpleTransform
       ^
SimpleTransform.java:73: cannot resolve symbol
symbol  : class SAXException
location: package sax
           org.xml.sax.SAXException
                      ^
SimpleTransform.java:77: cannot resolve symbol
symbol  : class XSLTProcessor
location: class SimpleTransform
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
    ^
SimpleTransform.java:77: cannot resolve symbol
symbol  : variable XSLTProcessorFactory
location: class SimpleTransform
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
                              ^
SimpleTransform.java:81: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
    processor.process(new XSLTInputSource("birds.xml"),
                          ^
SimpleTransform.java:82: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
                      new XSLTInputSource("birds.xsl"),
                          ^
SimpleTransform.java:83: cannot resolve symbol
symbol  : class XSLTResultTarget
location: class SimpleTransform
                      new XSLTResultTarget("birds.out"));
                          ^
12 errors

D:\XALAN\SAMPLES\SIMPLE~1>

Reply via email to