From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: java@gcc.gnu.org
Subject: Re: compiling to native: simple q
Date: Thu, 11 Apr 2002 07:44:00 -0000 [thread overview]
Message-ID: <3CB4FFE1.7030600@waitaki.otago.ac.nz> (raw)
In-Reply-To: <87zo0adzmh.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
Nic Ferrier wrote:
>I'm getting a whole bunch of errors that are to do with the
>dependancies of the class files.
>
>I have the CLASSPATH variable set to the jar files that are the
>dependancies for the paperclips classes, do I need to include them as
>compilation targets? (when I do that gcj segfaults).
>
>Should I be unpacking the jar files as classes and having gcj compile
>the whole thing?
>
>Should I be converting all the jar files into native libs and solving
>the depends that way?
>
Yes. You can't have native code that depends on bytecode (except for
weak dependencies, ie reflection)
You could compile the .jar files into shared libraries:
gcj -shared foo.jar -o libfoo.so
And then link your application against them:
gcj my/classes/*.java --main=my.classes.main -o myapp libfoo.so
regards
Bryce.
prev parent reply other threads:[~2002-04-11 3:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-10 20:17 Nic Ferrier
2002-04-11 7:44 ` Bryce McKinlay [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3CB4FFE1.7030600@waitaki.otago.ac.nz \
--to=bryce@waitaki.otago.ac.nz \
--cc=java@gcc.gnu.org \
--cc=nferrier@tapsellferrier.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).