Hi,
> > - How to install (from Fedora or JPackage repos) an jaxp_parser_impl.jar / Xerces J2 complied
> > for JDK 5m if there is such a thing?
>
> I don't think there is in Fedora. I don't know about JPackage.
I'll check.
> > - If there isn't, where should I change the SPEC from xervers-j2*src.rpm to rebuild it using Sun
> > JDK5 or to add target=1.5.0?
>
> You could probably try changing the BuildRequires line on java-devel and
> rebuild. With no target specified, it'll probably build whatever your
> javac defaults to (which I thought was less than its version but
> evidently not).
Doesn't work, because the build itself needs ant which doesn't run with Sun JDK5. Unless I manually
install another ant and force it to the path.
> > - How can it be that ant runs fine using gij which in theory supports only Java 5, but not with
> > Sun JDK 5?
>
> I don't know. Maybe the targets that are required in your case aren't
> used by any Fedora packages which build with gij?
Looks like that gij doesn't use xerces to provide jaxp services:
# alternatives --display jaxp_parser_impl
jaxp_parser_impl - status is manual.
link currently points to /usr/share/java/xerces-j2.jar
/usr/share/java/libgcj-4.4.4.jar - priority 20
/usr/share/java/xerces-j2.jar - priority 40
Current `best' version is /usr/share/java/xerces-j2.jar.
But running ant with gij and gcj yelds:
-------------------------------------------
XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: /usr/share/java/jaxp_parser_impl.jar
Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: /usr/share/java/jaxp_parser_impl.jar
Maybe gij finds it's own jaxp implementation in libgcj.jar before trying xerves, and so ant works.
But I don't like the idea of making whatever jaxp parser comes in libgcj be the system-wide default
for JDK 5. Or maybe gij and classpath provide for some JDK6 features, including the class file
format.
[]s, Fernando Lozano