delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/16/13:25:32

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
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Shankar Unni <shankar AT cotagesoft DOT com>
Subject: Re: IBM Java 13 + JNI + Cygwin fails
Date: Mon, 16 Dec 2002 10:25:14 -0800
Lines: 18
Message-ID: <3DFE1A8A.30404@cotagesoft.com>
References: <005401c2a47d$921fa590$ef47fea9 AT calvin>
NNTP-Posting-Host: adsl-64-165-207-59.dsl.snfc21.pacbell.net
Mime-Version: 1.0
X-Trace: main.gmane.org 1040063097 3570 64.165.207.59 (16 Dec 2002 18:24:57 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Mon, 16 Dec 2002 18:24:57 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en

Frank Traenkle wrote:
> Calling a DLL under Cygwin from IBM Java13 via JNI fails if the DLL depends
> on cygwin1.dll.

That may be because the JNI loader looks for its libraries along the 
path defined by the Java property "java.library.path".

Do a System.out.println(System.getProperty("java.library.path")); just 
before your System.loadLibrary() and see what you get.

I'm not sure what yours is getting set to. Normally, when you start a 
Java program from the (Windows) command line, java.library.path is set 
to your %PATH%, but if some or something has changed in within the 
program, you may need to fix it up.
--
Shankar




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