Solved

run time error....

Posted on 2004-08-04
8
347 Views
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 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
Comment
Question by:p3man3
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 20 total points
Comment Utility
Try setting an environment variable JAVA_HOME on your system to Java install dir
0
 
LVL 37

Accepted Solution

by:
zzynx earned 65 total points
Comment Utility
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
 
LVL 30

Assisted Solution

by:mayankeagle
mayankeagle earned 20 total points
Comment Utility
The subject line should read "compile time error...." ;-)
0
 
LVL 92

Assisted Solution

by:objects
objects earned 20 total points
Comment Utility
> 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 92

Expert Comment

by:objects
Comment Utility
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
You don't need to split between everyone. I don't think my comment was of any help!
0
 
LVL 37

Expert Comment

by:zzynx
Comment Utility
Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
8-)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
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:

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now