• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

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 ReferenceDesk.java

ReferenceDesk.java:10 cannot resolve symbol
symbol: class XSLTProcessorFactory
location: package xslt
import org.apache.xalan.xslt.XSLTProcessorFactory;
                                         ^
ReferenceDesk.java:11 cannot resolve symbol
symbol: class XSLTInputSource
location package xslt
import org.apache.xalan.xslt.XSLTInputSource;
                                          ^
ReferenceDesk.java:13 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.


0
p3man3
Asked:
p3man3
  • 2
  • 2
  • 2
  • +1
4 Solutions
 
CEHJCommented:
Try setting an environment variable JAVA_HOME on your system to Java install dir
0
 
zzynxSoftware 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
0
 
Mayank SAssociate Director - Product EngineeringCommented:
The subject line should read "compile time error...." ;-)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
objectsCommented:
> 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 :)
0
 
objectsCommented:
0
 
Mayank SAssociate Director - Product EngineeringCommented:
You don't need to split between everyone. I don't think my comment was of any help!
0
 
zzynxSoftware engineerCommented:
Thanks
0
 
CEHJCommented:
8-)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now