Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 90729 invoked from network); 26 Oct 2008 08:14:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2008 08:14:53 -0000 Received: (qmail 30681 invoked by uid 500); 26 Oct 2008 08:14:48 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 30602 invoked by uid 500); 26 Oct 2008 08:14:48 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 30591 invoked by uid 99); 26 Oct 2008 08:14:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Oct 2008 01:14:48 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nicolas.deloof@gmail.com designates 209.85.134.191 as permitted sender) Received: from [209.85.134.191] (HELO mu-out-0910.google.com) (209.85.134.191) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Oct 2008 08:13:34 +0000 Received: by mu-out-0910.google.com with SMTP id i2so1295119mue.6 for ; Sun, 26 Oct 2008 01:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=Clj7Im44N5CDApO7xE2ZdNgptTrHzP8UXOy5Sk0QFJs=; b=xK4iM5zdHzIPjL1glksr3JtwyBEB7eIW3zfNSCxwE2lcBVOAcSj/ODZJ1FmCY0y9ep wDZqmbw/KYFau7oze5jlJkT4NIG+VMfrBivNzXDTWpLuPmP7VbPq2xWM8VQjH+TPyrHY O0EDHcFA/7MzPgXFK0MAXoO1jnhLU23Lsby9g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=gjhyNIg/TtdOvU0lwJZhjHMmQoC6M7yKA92x7qAQJ9ReWi4ImOiOB+b3edVyP2l/Lg 8AdK4VlX+P1u643uRcvldvetky7Gk+wj739K8bwLMj1ZdzRdqoAUHVjMjKhXOKXtmQ9M 0r4eNHVe28bC5QpvxNadl83KkdAUCX+ejFos0= Received: by 10.103.17.10 with SMTP id u10mr2032930mui.76.1225008852301; Sun, 26 Oct 2008 01:14:12 -0700 (PDT) Received: by 10.103.119.14 with HTTP; Sun, 26 Oct 2008 01:14:12 -0700 (PDT) Message-ID: <4c39e3030810260114s73111332h3b7378a4d0c68b8f@mail.gmail.com> Date: Sun, 26 Oct 2008 10:14:12 +0200 From: "nicolas de loof" Sender: nicolas.deloof@gmail.com To: "Maven Users List" Subject: Re: how to write a plugin that uses native (jni) dependencies ? In-Reply-To: <52bab8690810251203i5ac0b134h4b2643792dcb3601@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_76985_18855125.1225008852288" References: <4c39e3030810220809x79ae176ey60e668ef2b35a6e7@mail.gmail.com> <52bab8690810222226p7e6424d2r4c238c3384115c37@mail.gmail.com> <4c39e3030810250433h7b3fefadn86494a7cf6b71ef4@mail.gmail.com> <52bab8690810251203i5ac0b134h4b2643792dcb3601@mail.gmail.com> X-Google-Sender-Auth: ba44b26690144f05 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_76985_18855125.1225008852288 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Right, NAR plugin forks a new JVM to test/integration-test a JNI lib, so it can set the java.library.path Wiki on JNI uses a custom tool to load all native libs found in project classpath. For a java+jni lib that does it's own System.loadLibrary( x ) on init, only the fork option is possible AFAIK to configure the JVM library.path. 2008/10/25 Wayne Fay > Probably NMaven was a poor suggestion. You get what you paid for on that > one. > > But FreeHEP NAR was not. > > Also check out this webpage on the Maven User wiki: > http://docs.codehaus.org/display/MAVENUSER/Projects+With+JNI > > Wayne > > On Sat, Oct 25, 2008 at 6:33 AM, nicolas de loof > wrote: > > I made a grep-search on NMaven to search for "library.path" with no > result. > > How does NMaven (that runs .Net tools from Java) relate to setting > > java.library.path on the JVM ? > > > > Nicolas > > > > 2008/10/23 Wayne Fay > > > >> > I'd like to package a windows tool as a maven plugin. I can > >> programmatically > >> > run it via JNI (using COM automation) but I need to set the > >> > java.library.path for this to work. > >> > >> I don't know the answer, but I assume this is something the NMaven > >> folks have dealt with, or perhaps the FreeHEP (NAR plugin) folks. You > >> should try their mailing lists and see what, if any, suggestions they > >> may have. > >> > >> http://incubator.apache.org/nmaven/ > >> http://java.freehep.org/freehep-nar-plugin/HelloWorld.html > >> > >> Wayne > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > >> For additional commands, e-mail: users-help@maven.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > ------=_Part_76985_18855125.1225008852288--