java.lang.UnsatisfiedLinkError

could not load FFI provider jnr.ffi.provider.jffi.Provider


Samebug tips9

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web3259

Solution icon of github
via GitHub by ssteidte
, 1 year ago
could not load FFI provider jnr.ffi.provider.jffi.Provider

Solution icon of googlegroups
via Google Groups by Unknown author, 1 month ago
could not load FFI provider jnr.ffi.provider.jffi.Provider

Solution icon of web
could not load FFI provider jnr.ffi.provider.jffi.Provider

Solution icon of web
could not load FFI provider jnr.ffi.provider.jffi.Provider

Solution icon of github
via GitHub by richrarobi
, 1 year ago
could not load FFI provider jnr.ffi.provider.jffi.Provider

Solution icon of github
via GitHub by tajila
, 1 year ago
could not load FFI provider jnr.ffi.provider.jffi.Provider

Solution icon of github
could not load FFI provider jnr.ffi.provider.jffi.Provider

Solution icon of web
could not load FFI provider jnr.ffi.provider.jffi.Provider

Solution icon of web
could not load FFI provider jnr.ffi.provider.jffi.Provider

Solution icon of github
could not load FFI provider jnr.ffi.provider.jffi.Provider

Stack trace

  • java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider at jnr.ffi.provider.InvalidProvider$1.loadLibrary(InvalidProvider.java:48) at jnr.ffi.LibraryLoader.load(LibraryLoader.java:325) at jnr.ffi.Library.loadLibrary(Library.java:127) at jnr.posix.POSIXFactory$DefaultLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:279) at jnr.posix.POSIXFactory$DefaultLibCProvider.getLibC(POSIXFactory.java:283) at jnr.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:37) at jnr.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:18) at jnr.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:143) at jnr.posix.POSIXFactory.loadNativePOSIX(POSIXFactory.java:121) at jnr.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:90) at jnr.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:36) at jnr.posix.LazyPOSIX.posix(LazyPOSIX.java:32) at jnr.posix.LazyPOSIX.isNative(LazyPOSIX.java:378) at org.jruby.RubyGlobal.prepareStdioChannel(RubyGlobal.java:295) at org.jruby.RubyGlobal.initSTDIO(RubyGlobal.java:272) at org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:199) at org.jruby.Ruby.init(Ruby.java:1190) at org.jruby.Ruby.newInstance(Ruby.java:334) at org.jruby.Main.internalRun(Main.java:271) at org.jruby.Main.run(Main.java:232) at org.jruby.Main.main(Main.java:204) Caused by: java.lang.NoClassDefFoundError: com/kenai/jffi/Type at jnr.ffi.provider.jffi.NativeRuntime.jafflType(NativeRuntime.java:193) at jnr.ffi.provider.jffi.NativeRuntime.buildTypeMap(NativeRuntime.java:76) at jnr.ffi.provider.jffi.NativeRuntime.<init>(NativeRuntime.java:57) at jnr.ffi.provider.jffi.NativeRuntime.<init>(NativeRuntime.java:41) at jnr.ffi.provider.jffi.NativeRuntime$SingletonHolder.<clinit>(NativeRuntime.java:53) at jnr.ffi.provider.jffi.NativeRuntime.getInstance(NativeRuntime.java:49) at jnr.ffi.provider.jffi.Provider.<init>(Provider.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at jnr.ffi.provider.FFIProvider$SystemProviderSingletonHolder.getInstance(FFIProvider.java:68) at jnr.ffi.provider.FFIProvider$SystemProviderSingletonHolder.<clinit>(FFIProvider.java:57) at jnr.ffi.provider.FFIProvider.getSystemProvider(FFIProvider.java:35) at jnr.ffi.Library.loadLibrary(Library.java:114) ... 18 more Caused by: java.lang.ClassNotFoundException: com.kenai.jffi.Type at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 34 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
4 times, 1 day ago
4 times, 3 weeks ago
4 times, 3 weeks ago
2433 more bugmates