This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: java/lang/natRuntime.cc


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Donnerstag, 21. August 2003 11:47 schrieb Andrew Haley:
> Michael Koch writes:
>  > -----BEGIN PGP SIGNED MESSAGE-----
>  > Hash: SHA1
>  >
>  > Am Montag, 18. August 2003 14:59 schrieb Andrew Haley:
>  > > Michael Koch writes:
>  > >  > I wrote a little patch to java/lang/natRuntime.cc to set
>  > >  > the property java.library.path like SUNs JDK does it.
>  > >  >
>  > >  > Please review and comment.
>  > >  >
>  > >  > Okay for commit ?
>  > >  >
>  > >  > +
>  > >  > +      // Initialize with prefix.
>  > >  > +      sb->append (JvNewStringLatin1 (PREFIX "/lib"));
>  > >
>  > > I don't understand this part.  Why do you do this?
>  >
>  > Constant string concatenation.
>
> Look, I understand C perfectly well.  Why do you initialize the
> library path with (PREFIX "/lib") ?

Well, it adds the path where libgcj was install to the 
java.library.path property. This directory is normally the directory 
where additional native libraries should be searched and loaded from 
like the AWT peer libs and others.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/Rj4VWSOgCCdjSDsRArPbAJ401gSt2bEGss3x7mKQe5MptEJ1YwCgj9XV
TxgQz7uKzPKWXjaYWpkZKRc=
=GlqH
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]