Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

run time error....

Posted on 2004-08-04
8
Medium Priority
?
354 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
[X]
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
8 Comments
 
LVL 86

Assisted Solution

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

Accepted Solution

by:
zzynx earned 260 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
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 80 total points
ID: 11717298
The subject line should read "compile time error...." ;-)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 92

Assisted Solution

by:objects
objects earned 80 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 :)
0
 
LVL 92

Expert Comment

by:objects
ID: 11731442
0
 
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!
0
 
LVL 37

Expert Comment

by:zzynx
ID: 11733193
Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11734557
8-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

610 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