« Return to Thread: how to add DLL to a NB Platform Library Module

Re: how to add DLL to a NB Platform Library Module

by Dejan Vucinic-2 :: Rate this Message:

Reply to Author | View in Thread

Thanks for the pointers Radim.  The problem, of course, was that
it's not modules/lib that the build script looks in, it's
release/modules/lib which is not really documented in an obvious
place.

The correct way to do it would be to have an Action in the Library
Wrapper Module so that a right-click offers a menu option
"Add Native Library..." which pops up a file chooser and copies
the chosen .dll or .so to the appropriate location.  This is a
two-minute job for someone who knows where to add the action.
Could someone please do it in NB6?  I'm sure hundreds of folks
stumble on this one.

Thanks,

--dv

Radim Kubacki wrote:

> Dejan Vucinic wrote:
>> Greetings,
>>
>> I've been trying for the past couple of days to add a native library
>> to a Library Module for the NetBeans 5.5 Platform.  The situation
>> seems to me like something that would be encountered often: I
>> have a third-party .jar file that comes with its own .DLL for use on
>> windows machines.  I can wrap the .jar in a Library Module with a
>> few mouse clicks as described in the documentation, but no
>> matter where I put the .DLL, regardless of adding <include ...>
>> statements to common.xml, the .DLL just doesn't get found by
>> the target platform.  Could anyone please explain why this is such
>> a pain?  Will this get fixed in NB 6?
>>
> The module system looks for native libraries in modules/lib directories.
> You can look at the example of extbrowser module that is part of IDE.
>
> -Radim
>
>> Thanks,
>>
>> --dv
>>
>

 « Return to Thread: how to add DLL to a NB Platform Library Module