java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

A required library class, Doclet, is not loaded. It's usually found in tools.jar in the JDK so make sure to add it (tools.jar) to your project's build path.

,
Expert tip

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
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.

Solutions on the web

via GitHub by cheister
, 11 months ago
could not load FFI provider jnr.ffi.provider.jffi.Provider
via GitHub by richrarobi
, 2 years ago
could not load FFI provider jnr.ffi.provider.jffi.Provider
via GitHub by qerub
, 2 years ago
could not load FFI provider jnr.ffi.provider.jffi.Provider
via GitHub by kimptoc
, 11 months ago
via GitHub by Bahaa2010
, 4 months ago
could not load FFI provider jnr.ffi.provider.jffi.Provider
via GitHub by ralphbellofatto
, 2 years ago
could not load FFI provider jnr.ffi.provider.jffi.Provider
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)
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.(NativeRuntime.java:57)
at jnr.ffi.provider.jffi.NativeRuntime.(NativeRuntime.java:41)
at jnr.ffi.provider.jffi.NativeRuntime$SingletonHolder.(NativeRuntime.java:53)
at jnr.ffi.provider.jffi.NativeRuntime.getInstance(NativeRuntime.java:49)
at jnr.ffi.provider.jffi.Provider.(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.(FFIProvider.java:57)
at jnr.ffi.provider.FFIProvider.getSystemProvider(FFIProvider.java:35)
at jnr.ffi.Library.loadLibrary(Library.java:114)
at jnr.posix.POSIXFactory$DefaultLibCProvider$SingletonHolder.(POSIXFactory.java:279)
at jnr.posix.POSIXFactory$DefaultLibCProvider.getLibC(POSIXFactory.java:283)
at jnr.posix.BaseNativePOSIX.(BaseNativePOSIX.java:37)
at jnr.posix.LinuxPOSIX.(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)

Users with the same issue

Once, 4 hours ago
Once, 22 hours ago
2 times, 3 days ago
Once, 4 days ago
Once, 4 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.