Re: DLL attach in NB Platform application

Steven Yi <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CANtcCs5fTkqtxU0TAeNMW4nGZqw14uwgZDwEid7oSqf+0RS2kQ@mail.gmail.com>
Hi Jacob,

Have you tried placing the native lib within your module?

http://wiki.netbeans.org/DevFaqNativeLibraries

The link from there explains further the arch and os options.

steven

On Wed, Feb 10, 2016 at 5:43 AM, jacobKM1 <[email protected]> wrote:
> Hi list,
>
> I am trying to attach a OpenBabel DLL file into a Netbeans Module application, which is not yet successful. Interestingly, that DLL is clearly working in Netbeans under the normal “Java Application”.
>
> Please see
>
> [url]http://openbabel.org/docs/dev/UseTheLibrary/Java.html [/url]
>
> for the JAVA file which couple with the DLL file (openbabel_java.dll).
> Currently I use OpenBabel-2.3.2 and Windows 7, NB 8.01.
>
> The corresponding error is given below:
>
> If some know to handle this issue, it will be of great help to me…
>
> Please also tell that how can we set <set CLASSPATH> for a NB Module application - before its immediate execution - if it is possible.
>
> Thanks in advance
>
> Jacm
>
> -------------------
>
> Error:
> java.lang.UnsatisfiedLinkError: org.openbabel.openbabel_javaJNI.new_OBConversion__SWIG_2()J
>         at org.openbabel.openbabel_javaJNI.new_OBConversion__SWIG_2(Native Method)
>         at org.openbabel.OBConversion.<init>(OBConversion.java:47)
>         at org.babel.babel.actionPerformed(babel.java:83)
>         at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:199)
>         at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
>         at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
>         at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
>         at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:202)
>         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
>         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
> ...
>
> ...
>
> (EventDispatchThread.java:105)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
>
>
> END[url][/url]
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.