Library error while running outside the IDE

Asked

Viewed 29 times

0

I’m connecting the application to a bluetooth device through a library, runs perfectly within the Netbeans, but then when I’m going to run through. jar gives this error:

Exception in thread "main" java.lang.NoSuchFieldError: an_in
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at plux.newdriver.bioplux.Device.<clinit>(Device.java:9)
        at biosignalsplugin.Methods.FindDevice(Methods.java:51)
        at biosignalsplugin.BioSignalsPlugin.main(BioSignalsPlugin.java:31)

Came along with the library a DLL file that I’ve already put in system32 folder, the library I imported using Add Jar/Folder and is perfect in the IDE, I have no idea what happens when I run the . jar

  • Guy’s not boring or anything, but did you read the paperwork? Just like the previous question I found the solution for you reading there, the answer to this problem may be in it.

  • I understand the kkk distrust, but I ended up having to read all the documentation to create the application, and there was nothing about the build, only about the two classes that have in the project and the exceptions ("there is no such Exception there... pq nor finding the library is").

  • And without knowing which library you’re using, it’s even harder to help you. Please add the library information used.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.