delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/27/10:40:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.2.0.9.2.20030227073533.01df57f8@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Thu, 27 Feb 2003 07:40:22 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: LD_LIBRARY_PATH not accessible through java under cygwin
for JNI
In-Reply-To: <Pine.LNX.4.44.0302271304240.13998-100000@localhost.localdo
main>
References: <BHEPLBGHPJKIDJGHBFLIAEABCAAA DOT gbourgeois AT yaccom DOT com>
Mime-Version: 1.0

Ronald,

At 04:10 2003-02-27, Ronald Landheer-Cieslak wrote:
>On Thu, 27 Feb 2003, gilles bourgeois wrote:
> > hi folks,
> >
> > I am currently using my JNI so/dll library under solaris, linux and cygwin.
> > with solaris and linux, no problem, I bind to it using load(..) since the
> > LD_LIBRARY_PATH is set.
> >
> > BUT, under cygwin/windows, it does not work and I shall tell the absolute
> > path when I load the library.
> >
> > I have already posted in java.machine, but Randall schulz told  me 
> to try in
> > this mailing list.
>
>OK, I think we need more info here: see http://cygwin.com/bugs.html and
>also tell us:
>* what Java VM are you using?
>* Why do you expect LD_LIBRARY_PATH to work on Windows?

Gilles, I must reiterate Ronald's suggestion. You've told us far too 
little to attempt a diagnosis.


>Note that Cygwin is not the one that loads the libraries for you - that's
>Windows' job. I would be (very) surprised if you were using a VM running
>under Cygwin , and that VM uses dlopen() and not LoadLibrary() (in which
>case LD_LIBRARY_PATH would work, of course).


And here's what I told him:

>>Gilles,
>>
>>I recommend that you address Cygwin issues and problems to the Cygwin
>>mailing list: see <http://cygwin.com/ml/> and
>><http://cygwin.com/cygwin/lists.html> for details. The list you want is
>>"cygwin," <mailto:cygwin AT cygwin DOT com>.
>>
>>
>>That said, there's no reason you cannot set an environment variable in
>>Cygwin that will be seen in a Java program launched from Cygwin.
>>
>>However, I don't think that's the issue. Cygwin, in fact, is a red
>>herring here. The Windows JVM from Sun is a Windows application, even if
>>it's launched from Cygwin and even if you're using JNI libraries
>>compiled under Cygwin using "gcc."
>>
>>Again, there are some Java users on the Cygwin mailing list and some of
>>them have produced JNI libraries using gcc. I suggest you ask for help
>>there.
>>
>>Randall Schulz



>but hey - go ahead - surprise me!
>
>rlc


Randall Schulz 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019