Open silvioOlivastri opened 7 years ago
It seems that it hangs calling the JNA loadLibrary
method to load the dynamic library (that for macos it's libhunspell-darwin-x86-64.dylib)
hsl = (HunspellLibrary)Native.loadLibrary(lib.getAbsolutePath(), HunspellLibrary.class);
Hi,
I would like to call the Hunspell Java class from my NodeJs project. These are the steps that I did:
1) Clone and build the HunspellJNA project from Git 2) Open project with IntelliJ IDEA Community Edition and add a new class:
3) Create the .jar file (Build -> Build Artifacts...) 4) Call the
SimpleHunspell
instance from the .js file:When I run my file (
node file.js
) from Terminal (MacOS with Java SDK 1.8), NodeJs load the .jar but goes to loop intojava.newInstanceSync
function (I have no errors).When a little debug, I find that the application goes to loop into
com.sun.jna.Native
method.N.B. : If I run from IntelliJ IDEA the class works well.