Using gcj

Jeff Sturm jsturm@one-point.com
Mon Nov 24 23:22:00 GMT 2003


On 2003年11月24日, Samuel Michael Fredland wrote:
> Note: I don't know if I automatically get CC'd when someone replies to
> this posting, so please copy me at slf29@cas.org, if you think it may be
> necessary.

I suggest posting with the address you want to be replied to, then. (You
posted as sfredland@cas.org.) The list software does not automatically
Cc: you on replies, but many users of this list habitually use the "Reply
All" feature of their mailer.
> When I run gcj (via my shell script), I get errors like this:
>> /home/slf29/props/org/cas/properties/acd/ACDProcessor.java:410:
> undefined reference to `javax::xml::transform::stream::StreamResult::class$'
> ...

Your command tells gcj where to find xerces for the purpose of
resolving class/method/field declarations, but does not actually link the
xerces classes. Because you have other classes depending on these, you
get errors at link time.
> Notice that it is not finding log4j, which does not have a native gcj
> implementation,

Sure it does.
> nor is it finding xerces, which is supposed to be
> implemented in native code for gcj,

It is, but is not distributed as part of libgcj. You can download it
separately.
> -I${gcc}/share/java/libgcj-3.3.jar \

You should not need this; gcj knows where to find its class library.
> -I${restr}/xerces/xerces-2_2_1/xercesImpl.jar \

Along with this you need a corresponding -l flag to link the compiled
xerces classes. Likewise for xalan.
You could compile xerces etc. yourself, but to save some effort I suggest
the RHUG project that includes gcj-buildable sources for many jakarta and
other open source Java packages: http://sources.redhat.com/rhug
Jeff


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /