Bug#240245: FW: Bug#240245: NoClassDefFoundError: org/xml/sax/SAXException

James Damour James Damour <jdamour@nycap.rr.com>, 240245@bugs.debian.org
Fri Mar 26 16:30:01 2004


> From: Arnaud Vandyck [mailto:avdyk@debian.org]
> Sent: Friday, March 26, 2004 10:09 AM
> To: debian-bugs-dist@lists.debian.org
> Cc: Debian Java Maintainers
> Subject: Bug#240245: NoClassDefFoundError: org/xml/sax/SAXException
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Stefan Gybas <sgybas@debian.org> writes:
> 
> > Jan Schulz wrote:
> >
> >> I guess that ant isn't adding any XML jar because "everybody" is using a
> >> 1.4 JDK...
> >
> > Your guess that Ant isn't adding an XML parser is correct but the reason
> > is that I don't want to make the choice for the users: Some users might
> > have an included XML parser (JDK 1.4+, free JVMs based on recent GNU
> > classpatrh versions), other might want to use a different one than my
> > preference (Xerces).
> >
> > But I think I have to change this. Ant will otherwise violate the Debian
> > Policy because it does not work without setting CLASSPATH in some
> > cases. :-(
> 
> Isn't Xerces2 in main? Maybe you can add xercesImpl and the jaxp api at
> the end of the CLASSPATH when running ant?
> 

I *do* have libxerces2-java installed (it was in the original posting,
so I must be blind).

When I added "/usr/share/java/xerces.jar" to the end of my CLASSPATH,
Ant ran without a hitch.  So I have a work-around for the bug.

> - -- 
>   .''`. 
>  : :' :rnaud
>  `. `'  
>    `-    
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQFAZEeq4vzFZu62tMIRAu20AKClfSQIzdnJzhJu0OGxtLPZXprPMACgtMs+
> 9KlgyaVIAVs3P7kFYaPXTNA=
> =39dp
> -----END PGP SIGNATURE-----
>