Re: Compile problems on Linux/Unix
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Stefan, Have you tried running the HelloWorld3 example at runtime? Deferred parsing needs to be able to find that file at runtime. That's actually why I made the change in the first place. As for Windows, I'm almost 100% positive this won't work. I'm pretty sure I tried it without the leading slash. I think things compile fine, but deferred parsing couldn't find it at runtime. The thing is, this is what XMLC uses in its xcatalog files to find dtd's on the classpath.... and I'm pretty sure that XMLC's path resolution works on both Windows and Unix. Take a look at XMLC default.xcat file to see what I mean. Anyway, we'll figure out some resolution to this issue that works for both Windows and Unix, but I don't think your proposal is the solution. Jake At 08:35 AM 8/25/2003 +0200, you wrote: >Hi, > >I encountered some compilation problems. The reason for this are some >changes from 2003/08/15 regarding absolute paths. E.g. >src/org/enhydra/barracuda/tutorials/xmlc/tutorials.xcat contains a >reference to file:/xlib/dtds/HelloWorld3.dtd. Note the first "/" here. >On Unix systems this refers to a absolute local file name >/xlib/dtds/HelloWorld3.dtd. >For Unix the correct URL would be file:xlib/dtds/HelloWorld3.dtd, which >is relative to the current directory (src). > >I've attached a diff file containing removal of the first "/" in some >files in order to compile fine on Linux. > >Before applying it to CVS, someone should check if the patch is >compatible with Micro$oft OSes, since I don't have one, it's up to you. > >Since the Unix/Linux bug is part of Barracuda 1.2.5 we should consider >releasing a 1.2.6. > >Regards, >Stefan >