This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gij/XML problem


On Sat, 2005-04-06 at 02:19 -0700, Daniel Qarras wrote:
> I've compiled Java application's jars with GCJ 4.0...
> gij -cp ./lib/myapp.jar:./lib/log4j.jar:./lib/jdom.jar
                                               ^^^^^^^^

You know, just as an oddball suggestion, you might try using the
org.xml.dom classes built into Java 1.4.

I had been using Xerces (which GCJ wouldn't compile) and then one day
was somewhat astonished to note that Java 1.4.x had the DOM API classes
built in, and apparently even an implementation. I was even more
astonished when I discovered that GCJ 4 had caught up and had full
coverage here (ok, so I'm slow).

Anyway, JDK 1.4.2 and GCJ 4.0 have allowed me to do away with my Xerces
dependency. Perhaps you could jettison your jdom one.

[Might have to make some small changes around your call to parse() - ie
figuring out the Java API for the implementation via TransformerFactory
and friends - but it was pretty minor and so far appears to work fine]

AfC
Stuttgart

-- 
Andrew Frederick Cowie

Technology strategy, managing change, establishing procedures,
and executing successful upgrades to mission critical business
infrastructure.

http://www.operationaldynamics.com/

Sydney   New York   Toronto   London

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]