|
From: <ek...@ba...> - 2003-03-31 15:42:40
|
Bruce,
I have downloaded the three programs you have modified since I have
shown interest in Babeldoc (LogService.java, ConfigService.java, and
XslTransformPipelineStage.java). This morning I attempted to do an ant
build using my JDK 1.3.1 compiler (and the programs listed above) and
received the following compiler errors:
D:\Program Files\babeldoc\src>build
Buildfile: build.xml
declare:
depends:
[echo] Build order: core babelfish conversion crypto sql scanner
gui web soap
build:
[echo] Building Babeldoc in: D:\Program Files\babeldoc\src
build:
[echo] Building core
[javac] Compiling 144 source files to D:\Program
Files\babeldoc\src\modules\core\build
[javac] D:\Program
Files\babeldoc\src\modules\core\src\com\babeldoc\core\LogService.java:28:
cannot resolve symbol
[javac] symbol : class StackTraceElement
[javac] location: package lang
[javac] import java.lang.StackTraceElement;
[javac] ^
This is simple ... we just need to comment out the "import" statement in
LogService.java
[javac] D:\Program
Files\babeldoc\src\modules\core\src\com\babeldoc\core\pipeline\stage\JavaXmlDecoderPipelineStage.java:28:
cannot resolve symbol
[javac] symbol : class XMLDecoder
[javac] location: package beans
[javac] import java.beans.XMLDecoder;
[javac] ^
I'm not sure how to handle this ... this class does not exist in the
java.beans package in JDK 1.3.1. Do you know if this came from a
"previously optional" Jar, such as JAXP that I could put in the
classpath? I looked through the JAXP and JAXB Jars (the best I could
find) and did not see this class in either one. Any ideas?
[javac] D:\Program
Files\babeldoc\src\modules\core\src\com\babeldoc\core\I18n.java:133:
MessageFormat(java.lang.String,java.util.Locale) has private acces
s in java.text.MessageFormat
[javac] format = new MessageFormat(escape(formatString),
locale);
[javac] ^
This constructor does not exist in the JDK 1.3.1. Rather, I believe
this can be implemented as:
format = new MessageFormat(escape(formatString));
format.setLocale(locale);
Any objection?
[javac] D:\Program
Files\babeldoc\src\modules\core\src\com\babeldoc\core\pipeline\PipelineDocument.java:296:
cannot resolve symbol
[javac] symbol : method toString (boolean)
[javac] location: class java.lang.Boolean
[javac] String bool = Boolean.toString(binary);
[javac] ^
This static method does not exist in JDK 1.3.1. My workaround for it
is:
(Boolean.valueOf(binary)).toString();
Any objection?
[javac] D:\Program
Files\babeldoc\src\modules\core\src\com\babeldoc\core\pipeline\command\PipelineCommand.java:126:
cannot resolve symbol
[javac] symbol : method toString (boolean)
[javac] location: class java.lang.Boolean
[javac] System.out.print(I18n.get("008004",
Boolean.toString(tracked)));
[javac] ^
See above
[javac] D:\Program
Files\babeldoc\src\modules\core\src\com\babeldoc\core\pipeline\stage\JavaXmlDecoderPipelineStage.java:74:
cannot resolve symbol
[javac] symbol : class XMLDecoder
[javac] location: class
com.babeldoc.core.pipeline.stage.JavaXmlDecoderPipelineStage
[javac] XMLDecoder d = new XMLDecoder(doc.getInputStream());
[javac] ^
See above
[javac] D:\Program
Files\babeldoc\src\modules\core\src\com\babeldoc\core\pipeline\stage\JavaXmlDecoderPipelineStage.java:74:
cannot resolve symbol
[javac] symbol : class XMLDecoder
[javac] location: class
com.babeldoc.core.pipeline.stage.JavaXmlDecoderPipelineStage
[javac] XMLDecoder d = new XMLDecoder(doc.getInputStream());
[javac] ^
See above
[javac] 7 errors
BUILD FAILED
file:D:/Program Files/babeldoc/src/./modules/core/build.xml:23: Compile
failed; see the compiler error output for details.
Total time: 14 seconds
|