public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/18234] New: System property java.library.path doesn't get used by System.loadLibrary()
@ 2004-10-30 20:33 mark at gcc dot gnu dot org
  2004-10-30 23:03 ` [Bug libgcj/18234] " mark at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-10-30 20:33 UTC (permalink / raw)
  To: java-prs

When compiling the following program with gcj -Djava.library.path=/usr/lib/jni
--main t t.java does print that java.library.path is set to /usr/lib/jni, but
this value isn't used to actually load a library in the next statement. When
defining the environment variable LD_LIBRARY_PATH a library in /usr/lib/jni can
be found.

public class t
{
  public static void main(String[] args)
  {
    System.out.println(System.getProperty("java.library.path"));
    System.loadLibrary(args[0]);
  }
}

Also setting GCJ_PROPERTIES=java.library.path=/usr/lib/jni doesn't work.

-- 
           Summary: System property java.library.path doesn't get used by
                    System.loadLibrary()
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mark at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


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

* [Bug libgcj/18234] System property java.library.path doesn't get used by System.loadLibrary()
  2004-10-30 20:33 [Bug libgcj/18234] New: System property java.library.path doesn't get used by System.loadLibrary() mark at gcc dot gnu dot org
@ 2004-10-30 23:03 ` mark at gcc dot gnu dot org
  2004-10-30 23:27 ` mark at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-10-30 23:03 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mark at gcc dot gnu dot org  2004-10-30 23:03 -------
Think I found what goes wrong.
We call lt_dlinit after we have set lt_dlsetsearchpath.
Testing a patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-30 23:03:34
               date|                            |


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


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

* [Bug libgcj/18234] System property java.library.path doesn't get used by System.loadLibrary()
  2004-10-30 20:33 [Bug libgcj/18234] New: System property java.library.path doesn't get used by System.loadLibrary() mark at gcc dot gnu dot org
  2004-10-30 23:03 ` [Bug libgcj/18234] " mark at gcc dot gnu dot org
@ 2004-10-30 23:27 ` mark at gcc dot gnu dot org
  2004-10-30 23:58 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-10-30 23:27 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mark at gcc dot gnu dot org  2004-10-30 23:27 -------
Patch here:
http://gcc.gnu.org/ml/java-patches/2004-q4/msg00393.html

-- 


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


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

* [Bug libgcj/18234] System property java.library.path doesn't get used by System.loadLibrary()
  2004-10-30 20:33 [Bug libgcj/18234] New: System property java.library.path doesn't get used by System.loadLibrary() mark at gcc dot gnu dot org
  2004-10-30 23:03 ` [Bug libgcj/18234] " mark at gcc dot gnu dot org
  2004-10-30 23:27 ` mark at gcc dot gnu dot org
@ 2004-10-30 23:58 ` cvs-commit at gcc dot gnu dot org
  2004-10-31  0:07 ` mark at gcc dot gnu dot org
  2004-11-06 15:50 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-30 23:58 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-30 23:58 -------
Subject: Bug 18234

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mark@gcc.gnu.org	2004-10-30 23:58:26

Modified files:
	libjava        : ChangeLog 
	libjava/java/lang: Runtime.java 

Log message:
	PR libgcj/18234
	* java/lang/Runtime.java (static): Call init().
	(Runtime): Remove call to init().
	(init): Make static.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3174&r2=1.3175
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/lang/Runtime.java.diff?cvsroot=gcc&r1=1.17&r2=1.18



-- 


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


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

* [Bug libgcj/18234] System property java.library.path doesn't get used by System.loadLibrary()
  2004-10-30 20:33 [Bug libgcj/18234] New: System property java.library.path doesn't get used by System.loadLibrary() mark at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-10-30 23:58 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-31  0:07 ` mark at gcc dot gnu dot org
  2004-11-06 15:50 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-10-31  0:07 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mark at gcc dot gnu dot org  2004-10-31 00:07 -------
Fix checked in.

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


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


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

* [Bug libgcj/18234] System property java.library.path doesn't get used by System.loadLibrary()
  2004-10-30 20:33 [Bug libgcj/18234] New: System property java.library.path doesn't get used by System.loadLibrary() mark at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-10-31  0:07 ` mark at gcc dot gnu dot org
@ 2004-11-06 15:50 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-06 15:50 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2004-11-06 15:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-30 20:33 [Bug libgcj/18234] New: System property java.library.path doesn't get used by System.loadLibrary() mark at gcc dot gnu dot org
2004-10-30 23:03 ` [Bug libgcj/18234] " mark at gcc dot gnu dot org
2004-10-30 23:27 ` mark at gcc dot gnu dot org
2004-10-30 23:58 ` cvs-commit at gcc dot gnu dot org
2004-10-31  0:07 ` mark at gcc dot gnu dot org
2004-11-06 15:50 ` pinskia at gcc dot gnu dot org

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