public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/21741] New: Need configure option to set java.library.path
@ 2005-05-24 19:43 green at redhat dot com
  2005-05-24 19:52 ` [Bug libgcj/21741] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: green at redhat dot com @ 2005-05-24 19:43 UTC (permalink / raw)
  To: java-prs

We need a configure option to set java.library.path.

Right now libgcjawt.so in installed in ${prefix}/lib.

In FC4 we use java-gcj-compat to create a libjawt.so symlink in
/usr/lib/jvm/jre/lib/i386 (via alternatives).    Programs running
System.loadLibrary("jawt") should find this without users having to set
LD_LIBRARY_PATH or -Djava.library.path.  One answer is to let packagers set the
default java.library.path at configure time.

-- 
           Summary: Need configure option to set java.library.path
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: green at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path green at redhat dot com
@ 2005-05-24 19:52 ` pinskia at gcc dot gnu dot org
  2005-08-16 10:32 ` debian-gcc at lists dot debian dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-24 19:52 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-24 19:52 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-24 19:52:41
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path 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
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2005-08-16 10:32 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From debian-gcc at lists dot debian dot org  2005-08-16 10:32 -------
This doesn't solve the problem, that the library is not found, when the .so and
.la files are missing, i.e. if the -dev or -devel part of libgcj is not installed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at debian dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path 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
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-08-16 15:40 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-08-16 15:39 -------
*** Bug 23403 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fitzsim at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path green at redhat dot com
                   ` (2 preceding siblings ...)
  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
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-08-16 15:41 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-08-16 15:41 -------
libjawt.so is in the base package, so it will be found as long as
/usr/lib/jvm/jre/lib/i386 is in java.library.path.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug classpath/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path green at redhat dot com
                   ` (3 preceding siblings ...)
  2005-08-16 15:41 ` fitzsim at redhat dot com
@ 2005-08-21 20:48 ` fitzsim at redhat dot com
  2005-08-24 16:08 ` mark at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-08-21 20:48 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |fitzsim at redhat dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug classpath/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path green at redhat dot com
                   ` (4 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mark at gcc dot gnu dot org @ 2005-08-24 16:08 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mark at gcc dot gnu dot org  2005-08-24 16:08 -------
Note that since 0.15 GNU Classpath has the following system property:

* New system property "gnu.classpath.boot.library.path" can be specified
  to define the location of the JNI libraries. It is by all means meant
  ONLY for VM implementors and GNU Classpath hackers. See the hacking
  guide for more information.
http://www.gnu.org/software/classpath/docs/vmintegration.html#SEC43

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug classpath/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path green at redhat dot com
                   ` (5 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-08-24 19:40 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug classpath/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path green at redhat dot com
                   ` (6 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-08-24 21:58 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-08-24 21:58 -------
OK, $JAVA_HOME/jre/lib/i386 needs to go in gnu.classpath.boot.library.path and
java.library.path.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path green at redhat dot com
                   ` (7 preceding siblings ...)
  2005-08-24 21:58 ` fitzsim at redhat dot com
@ 2005-09-02  1:03 ` fitzsim at redhat dot com
  2005-09-07  1:07 ` fitzsim at redhat dot com
  2005-09-07 12:36 ` fitzsim at redhat dot com
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-09-02  1:03 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-09-02 01:02 -------
This is actually a libgcj bug.  I'm changing the Product.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|classpath                   |libgcj
            Product|classpath                   |gcc
   Target Milestone|---                         |4.1.0
            Version|0.17                        |4.0.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path green at redhat dot com
                   ` (8 preceding siblings ...)
  2005-09-02  1:03 ` [Bug libgcj/21741] " fitzsim at redhat dot com
@ 2005-09-07  1:07 ` fitzsim at redhat dot com
  2005-09-07 12:36 ` fitzsim at redhat dot com
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-09-07  1:07 UTC (permalink / raw)
  To: java-prs


------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/21741] Need configure option to set java.library.path
  2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path green at redhat dot com
                   ` (9 preceding siblings ...)
  2005-09-07  1:07 ` fitzsim at redhat dot com
@ 2005-09-07 12:36 ` fitzsim at redhat dot com
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-09-07 12:36 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-09-07 12:36 -------
Filed two new bugs for the remaining java.library.path issues:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23761

and

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23762

I'm closing this bug.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21741


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-09-07 12:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-24 19:43 [Bug libgcj/21741] New: Need configure option to set java.library.path 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
2005-09-07 12:36 ` fitzsim at redhat dot com

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).