• Post Reply Bookmark Topic Watch Topic
  • New Topic

UnsatisfieldLinkError  RSS feed

 
Michael Tuggle
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need some help! i'm just getting into the IT field just updated to Java 8 update 101 and i'm now getting this error when trying to run my check scanner.
no EZJcomLib17 in java.library.path

Any suggestions?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

This error means that the Java program you are trying to run needs a native library and it can't find it. If you're running this on Windows, it is looking for the DLL: EZJcomLib17.dll

If you have this DLL in a directory then you can set the system property "java.library.path" when you start your Java program by specifying it on the command line with the -D option, for example:

java -Djava.library.path=C:\Project\lib com.mypackage.MyProgram

(where C:\Project\lib is the directory that contains the DLL).

Another reason this happens is when you are using 32-bit Java while the native library is 64-bit or vice versa; the "bitness" of the JVM and the library that you are using must match.
 
Michael Tuggle
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, just so i know what you talking about.

i need to locate the .dll it is looking for (making not of its location), then go into CMD and type java -Djava.library.path="the .dll location" com.mypackage.MyProgram

is that right?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't literally type that in, that was just an example of how to use the -D option on the command line to specify the java.library.path system property.

I obviously don't know exactly how you run your Java program and what the name of its main class is, and "com.mypackage.MyProgram" was just an example of a package and class name.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!