开发者

Can't resolve error ([-93] cannot load library: java.lang.UnsatisfiedLinkError:)

开发者 https://www.devze.com 2023-02-17 05:45 出处:网络
I\'m trying to use the SQLite4Java library in my java application, when I try to open the database I get the following error:

I'm trying to use the SQLite4Java library in my java application, when I try to open the database I get the following error:

[-93] cannot load library: java.lang.UnsatisfiedLinkError: no sqlite4java-win32-x86 in java.library.path

I've tried to ensure that the library is referenced correctly:

Library manager

Can't resolve error ([-93] cannot load library: java.lang.UnsatisfiedLinkError:)

Project Explorer

Can't resolve error ([-93] cannot load library: java.lang.UnsatisfiedLinkError:)

Import Statements

Can't resolve error ([-93] cannot load library: java.lang.UnsatisfiedLinkError:)

I don't use 开发者_高级运维additional libraries in Java often at all and this is the first time I have come across this, am I missing an additional setting that needs to be made?

Thanks!


Seems the answer is fairly simple, when copying the .jar to my directory it seems the additional .DLL files weren't copied with it.

◦Native libraries (*.dll, *.so, *.jnilib) - place them in the same directory with sqlite4java.jar;

One copy and paste command later, success!

0

精彩评论

暂无评论...
验证码 换一张
取 消