Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exception in thread "main" java.lang.UnsatisfiedLinkError"

Tags:

java

smartcard

This exception is arising when I am running my program for smart card reading. My device is not connected. Please help me.

like image 571
JDGuide Avatar asked Dec 02 '22 21:12

JDGuide


1 Answers

This means it could not load a shared library you need. This could be because.

  • The library is not in your library path.
  • The library does not have the right name e.g. LIBRARY must be libLIBRARY.so on Unix
  • The library is not executable by you.
  • The library is not for the OS or bit size of your JVM. e.g. a 64-bit JVM will not load a 32-bit library.
  • Your JRE is not installed correctly and it is failing to load one of its own libraries.
  • You are using a shared library which needs another shared library you don't have.
  • The DLL wasn't build as a JNI library or used from JNA.
like image 52
Peter Lawrey Avatar answered Dec 17 '22 03:12

Peter Lawrey