Using gcj

Tom Tromey tromey@redhat.com
Tue Nov 25 17:37:00 GMT 2003


>>>>> "Samuel" == Samuel Michael Fredland <sfredland@cas.org> writes:

>> http://sources.redhat.com/rhug

Samuel> This site seems to just point to other sites which don't appear to
Samuel> mention anything about gcj (I haven't looked at all of them).
Follow the "source code" link on the left and you'll get instructions
on checking out rhug.
Samuel> Is just having the jars for log4j, xerces, etc. good enough?
Samuel> Can't gcj compile bytecodes into native code?
Yes, you can do that. In some cases the rhug versions are modified to
build from source with gcj (i.e., work around gcj bugs, sigh). Also
sometimes parts are removed when libgcj doesn't have the required
library coverage... e.g., if a package uses com.sun.*.
Samuel> If there's some Java application that hasn't been
Samuel> "ported" to gcj, say dotnet4j, can I still use it with gcj by having
Samuel> gcj compile its bytecodes? How do I tell gcj to do this for a
Samuel> particular package?
 gcj -shared -o libfoo.so foo.jar
This won't always work if required packages are missing from libgcj.
Unfortunately this happens from time to time.
Tom


More information about the Java mailing list

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