run time error....

Posted on 2004-08-04
Last Modified: 2010-03-31
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.

Question by:p3man3
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
LVL 86

Assisted Solution

CEHJ earned 20 total points
ID: 11716334
Try setting an environment variable JAVA_HOME on your system to Java install dir
LVL 37

Accepted Solution

zzynx earned 65 total points
ID: 11716542
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
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 20 total points
ID: 11717298
The subject line should read "compile time error...." ;-)
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

LVL 92

Assisted Solution

objects earned 20 total points
ID: 11722038
> 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 :)
LVL 92

Expert Comment

ID: 11731442
LVL 30

Expert Comment

by:Mayank S
ID: 11732846
You don't need to split between everyone. I don't think my comment was of any help!
LVL 37

Expert Comment

ID: 11733193
LVL 86

Expert Comment

ID: 11734557

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
web application structure 18 115
Detect Closed Loops (circles, figure-8s, etc) in PNG Images 6 77
eclipse console opening separately 2 38
Html Table Looping (part 2) 5 35
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question