ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: JNI and Endorsed directorys
Date Tue, 09 Oct 2007 15:31:53 GMT
Foreman, Alex (IT) wrote:
> Yes,
> Bringing .so files onto the classpath etc.  Rarther than just .jar
> files.
> Thanks,
> Alex

1. Ivy lets you publish/retrieve things other than JAR files. You could 
be clever and publish windows, linux 32 bit and linux 64 bit libs up 
there; the hard part is probably just retrieving the versions for your 
platform. I'd probably have different configs

lib-win-xp-32, lib-linux-32, lib-linux-64, etc.

Then make the decision of which one to use made in Ant based on os values.

2. you need to set up <java> with the right settings

  <env key="PATH" path="${ivy.lib.dir}:${env.PATH}" />

  <sysproperty key="java.endorsed.dirs" path="${endorsedDirs}" />

The hard part is getting the path set up right so that a DLL can load 
other DLLs in the same directory; Java requires all chained libraries to 
be in the PATH env variable.

> -----Original Message-----
> From: Steve Loughran [] 
> Sent: 09 October 2007 10:21
> To:
> Subject: Re: JNI and Endorsed directorys
> Foreman, Alex (IT) wrote:
>> Hi,
>> Are there any examples of IVY using JNI or Endorsed Directorys?
>> Im sure I read Ivy supported JNI but I cannot find anything now.
> What do you mean? Are you trying to set up, say <java> with new stuff in
> an endorsed directory and some native libraries?
> -steve

Steve Loughran        
Author: Ant in Action 

View raw message