Re: Barracuda: Compiling Barracuda - first time Barracuda user
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
At 11:42 AM 1/13/2003 +0100, you wrote: >>Thanks for your help so far Jacob. Any hints on what to look at next >>would be appreciated. >>*I just want to run Barracuda so that I can view and modify the sample >>apps, and, also view and modify the contrib project from Diez. Is there >>another way of achieving this?* >>Note: The CLASSPATH environment variable is not defined in my profile. >>The only environment variable related to Java in my profile is JAVA_HOME. > >Strange. From the exception itself, it appears that ant can't load XMLC at >first hand. So I have only two ideas for that: Either the XMLC is not in >the classpath at all. So make sure it is, when I recollect jacobs hints >correct it should also live under ant/lib. It should have been included in the classpath built internally by the Barracuda build so putting xmlc in ANT_HOME/lib is not needed. The only reason why xerces would need to go in ANT_HOME/lib is to provide xml parsing libraries for Ant itself when running under jdk1.3.x or some other JDK which doesn't include JAXP. Since having xerces2 there will break the Barracuda build, they need to be removed and have to be replaced by something...which would be the xerces version that comes with Barracuda. Under j2sdk1.4.x, the JAXP parser is automatically available so xerces can be removed from ANT_HOME/lib entirely. And, it the most recent CVS, Barracuda's xerces version is included in the internally built classpath so everything should work fine with nothing extra in ANT_HOME/lib other than JUnit if you want to run the JUnit tests. That has to do with the fact that the JUnit taskdef exists in the parent classloader (optional.jar) and can't load JUnit from the child classloader. The only other workaround would be to include optional.jar in Barracuda's internally built classpath, but I don't like that idea much and haven't even tested it to see if it would work. >Or it has some static dependencies, which can't be solved ant classloading >time, so it java pukes without proper error messages. But I have no idea >what that could be (log4j is a candidate in barracuda, but I haven't >looked into XMLC source for quite a while now.) I still think it has to be a problem with existing dom packages somewhere in the classpath. JAVA_HOME/jre/ext directory is a place to check. That causes all sorts of issues. Jake >BTW: any comments on my contrib apps/classes are appreaciated. > >MfG Diez > >_______________________________________________ >Barracuda mailing list >[email protected] >http://www.enhydra.org/mailman/listinfo.cgi/barracuda >FAQ - http://www.jguru.com/faq/Barracuda