On 4/12/07, Aaron Digulla <[EMAIL PROTECTED]> wrote:

Joerg Hohwiller wrote:
> Hi there,
>
> I have already used SWT and GWT together with maven. Both need native
system
> libraries at some specific point. This causes trouble when running code
(e.g.
> test-cases) with maven.

The latest 3.3 release of SWT includes the library files in the JAR! I
have no idea how they do it and how the Java VM can find and load these
but it works. Maybe you could ask the SWT guys how they did it and


http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#loadLibrary(java.lang.String)

provide a Maven plugin to add dll/so-files to a JAR in such a way that
the Java runtime can find and load them without messing with
java.library.path.


It loads it to the runtime, not a classpath, so a simple plugin could take
the dll location (or extract from a jar) and load it, then the build
lifecycle can be on it's merry way. However, the NAR option looks to be the
best.

Eric

Reply via email to