run time error....

hi, all.
I came back with question ^^)
I runned batch file named "compile.bat"
but I got an error

<error message is >
C:\comp150xml\soap\examples\example01\web-service>compile cannot resolve symbol
symbol: class XSLTProcessorFactory
location: package xslt
import org.apache.xalan.xslt.XSLTProcessorFactory;
                                         ^ cannot resolve symbol
symbol: class XSLTInputSource
location package xslt
import org.apache.xalan.xslt.XSLTInputSource;
                                          ^ cannot resolve symbol
symbol: class XSLTProcessor
location package xslt
import org.apache.xalan.xslt.XSLTProcessor;


<compile.bat file is >
@echo off

set rootdir=..\..\..\..\

set CLASSPATH=%CLASSPATH%;%rootdir%soap-2_3_1\lib\soap.jar
set CLASSPATH=%CLASSPATH%;%rootdir%xmlParsers\xerces-1_4_3\xerces.jar
set CLASSPATH=%CLASSPATH%;%rootdir%jakarta-tomcat-4.1.30\common\lib\mail.jar
set CLASSPATH=%CLASSPATH%;%rootdir%jakarta-tomcat-4.1.30\common\lib\activation.jar
set CLASSPATH=%CLASSPATH%;%rootdir%xslProcessors\xalan-j_2_5_2\bin\xalan.jar
set CLASSPATH=%CLASSPATH%;%rootdir%xslProcessors\xalan-j_2_5_2\bin\xerceslmpl.jar
set CLASSPATH=%CLASSPATH%;%rootdir%xslProcessors\xalan-j_2_5_2\bin\xml-apis.jar
set CLASSPATH=%CLASSPATH%;%rootdir%xslProcessors\xalan-j_2_5_2\bin\bsf.jar

javac -classpath %CLASSPATH% %1
I think I included necessary jar files in my classpath. But it seems i was not correct.

Who is Participating?
zzynxConnect With a Mentor Software engineerCommented:
Look for a file named "XSLTProcessorFactory.class" in a jar file in the xslProcessors\xalan-j_2_5_2\ directory.
(You can open a jar file with WinZip)

If you find it in one of the four: xalan.jar, xerceslmpl.jar, xml-apis.jar, bsf.jar
==> error in your batch file
If you find it in one other jar file: add it to your class path in the batch file
CEHJConnect With a Mentor Commented:
Try setting an environment variable JAVA_HOME on your system to Java install dir
Mayank SConnect With a Mentor Associate Director - Product EngineeringCommented:
The subject line should read "compile time error...." ;-)
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

objectsConnect With a Mentor Commented:
> set rootdir=..\..\..\..\

I'd suggest usuing an absolute directory location instead of a relative one.
If you are using a relative one then check you are running your bat from the correct directory.

you may also find ant worth looking at :)
Mayank SAssociate Director - Product EngineeringCommented:
You don't need to split between everyone. I don't think my comment was of any help!
zzynxSoftware engineerCommented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.