A
A
Antonzm2016-05-17 22:52:20
Java
Antonzm, 2016-05-17 22:52:20

How to connect the library to intellij idea correctly?

Look, there is a library, fann, it is written in c++, I need to integrate it into java, I found two jar files, fannj_0_6 and jna_4_1_0. I connected them, but during execution I get the error
"Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'fannfloat'"
I realized that this is due to the fact that it cannot find the native library 'fannfloat' '. Having searched a little, I found 3 libs and ddlks, exactly what is missing. The path to the resources was
"file: / C: / Program%20Files / Java / jdk1.7.0_79 /"
Well, I took and just put these files in to this address (everywhere, where it was possible), but when the program is executed, he still does not see them:
" Unable to load library 'fannfloat': Native library (win32-x86-64/fannfloat.dll) not found in resource path ([file:/C:/Program%20Files/Java/jdk1.7.0_79/jre/lib/ charsets.jar"
Help!!(((

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nokhchi Borz, 2016-05-17
@Antonzm

What version of java do you have? fannj-0.6.jar DLL is compiled in 32 bit environment maybe you have 64 bit java and that is the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question