Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.cgarbs.de!news.addix.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Philipp Kraus Newsgroups: comp.lang.java.programmer Subject: Re: System.load / System.loadLibrary Date: Sun, 9 Oct 2011 18:41:51 +0200 Organization: 1&1 Internet AG Lines: 22 Message-ID: References: NNTP-Posting-Host: p3ee29748.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: online.de 1318178511 1393 62.226.151.72 (9 Oct 2011 16:41:51 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Sun, 9 Oct 2011 16:41:51 +0000 (UTC) User-Agent: Unison/2.1.5 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8665 On 2011-10-09 18:32:08 +0200, markspace said: > On 10/9/2011 7:54 AM, Roedy Green wrote: >> In Forth it would be trivial to insert so some code to monitor what >> strings load was being fed. I have never figured out how to pull that >> off in Java. If you had such a tool, I think you could crack this >> problem quite quickly. > > > I seem to recall a tool on Unix system for monitoring the systems calls > made by a process. I guess you could use that on the JVM to see what > file calls where made by the JVM. Not sure how it works though. > > It might be strace I'm thinking of. Not sure though, I'm no sysadmin. If I do the call with System.load("/usr/lib/libmylib.so") under Linux it works, under OSX with System.load("/usr/lib/libmylib.dylib") it does not. OSX seems to have the DYLD_LIBRARY_PATH environment variable. Phil