When dll libraries are connected to a project in NetBeans using the -Djava.library.path parameter, everything works fine, but after compiling and running the jar file, an error is generated due to the lack of dll file data. Is it possible to somehow load these dll in jar file or set the path to them?

    1 answer 1

    Try putting these libraries in the same directory where the "jar" itself is located, for example, in the ".lib \ *. Dll" folder. When you start "" jar`a add parameter:

    java -Djava.library.path =. \ lib \ -jar * .jar

    corrected

    • Unfortunately, this led to nothing. Error as it was, and remained. - Igor Makhov
    • The problem was solved by trial and error. It turns out it was necessary to write this parameter before -jar * .jar. - Igor Makhov
    • excellent (-_-) yes, I confused something. Usually such parameters always go first - user219806