[jdom-interest] Unable to build JDOM 1.0beta9-dev [2002]
Laurent Bihanic
laurent.bihanic at atosorigin.com
Wed Mar 19 01:25:13 PST 2003
Matt Futterman wrote:
> I have been trying to build the latest source from CVS but get
> the errors shown below.
> -----------------------------------------------
> ;.\lib\jaxp.jar;.\lib\jaxen-core.jar;.\lib\jaxen-jdom.jar;.\lib\saxpath.jar;.\lib\collections.jar;C:\jdk1.1.8\lib\classes.zip
Regardless what error you may get later on, there's already a problem here:
the Jaxen XPath engine JARs provided with JDOM require JDK 1.2 or higher.
To compile the XPath part of JDOM with JDK 1.1.x, you first need to get a
distribution of Jaxen (1.0 FCS) and rebuild it with the collections.jar in the
classpath (the build.xml should detect the presence of JDK 1.1 collections and
automatically make use of them).
> C:\cvs\jdom\build\src\org\jdom\input\JDOMParseException.java:91: Bla
> nk final variable 'partialDocument' may not have been initialized. It
> must be as
> signed a value in an initializer, or in every constructor.
> [javac] public JDOMParseException(String message, Throwable
> cause) {
This constructor is valid as it calls the other constructor which initialises
partialDocument.
But if this causes problems with JDK 1.1, you can safely make partialDocument
not 'final'.
Laurent
More information about the jdom-interest
mailing list