public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "fitzsim at redhat dot com" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug libgcj/21741] Need configure option to set java.library.path Date: Wed, 07 Sep 2005 01:07:00 -0000 [thread overview] Message-ID: <20050907010735.7857.qmail@sourceware.org> (raw) In-Reply-To: <20050524194328.21741.green@redhat.com> ------- Additional Comments From fitzsim at redhat dot com 2005-09-07 01:07 ------- It turns out that Sun handles this in a strange way. To ensure that libjawt.so is found automatically, Sun's java executable prepends $JAVA_HOME/jre/lib/i386 to LD_LIBRARY_PATH then re-exec's itself within the new environment. I've just added a java command to java-gcj-compat that does the same thing only exec's gij instead of re-exec'ing itself. java.library.path has nothing to do with LD_LIBRARY_PATH except that its user-visible value defaults to the contents of LD_LIBRARY_PATH. The argument to -Djava.library.path= should be added to the dynamic library loader's search path. So we also need to support running JAWT apps like this: java -Djava.library.path=. gnu.classpath.examples.jawt.DemoJAWT Currently this doesn't work. Though the initial problem is fixed now, I won't close this bug until this usage pattern is also supported. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741
next prev parent reply other threads:[~2005-09-07 1:07 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-05-24 19:43 [Bug libgcj/21741] New: " green at redhat dot com 2005-05-24 19:52 ` [Bug libgcj/21741] " pinskia at gcc dot gnu dot org 2005-08-16 10:32 ` debian-gcc at lists dot debian dot org 2005-08-16 15:40 ` fitzsim at redhat dot com 2005-08-16 15:41 ` fitzsim at redhat dot com 2005-08-21 20:48 ` [Bug classpath/21741] " fitzsim at redhat dot com 2005-08-24 16:08 ` mark at gcc dot gnu dot org 2005-08-24 19:40 ` fitzsim at redhat dot com 2005-08-24 21:58 ` fitzsim at redhat dot com 2005-09-02 1:03 ` [Bug libgcj/21741] " fitzsim at redhat dot com 2005-09-07 1:07 ` fitzsim at redhat dot com [this message] 2005-09-07 12:36 ` fitzsim at redhat dot com
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=20050907010735.7857.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /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: linkBe 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).