java.lang.RuntimeException: Failed to load the native library. The error was "Unable to load library 'vlc': JNA native support (darwin/libvlc.jnilib) not found in resource path (/Users/sshugabugaa/AVS/alexa-avs-sample-app/samples/javaclient/target/classes:/Users/sshugabugaa/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:/Users/sshugabugaa/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/sshugabugaa/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar:/Users/sshugabugaa/.m2/repository/commons-fileupload/commons-fileupload/1.3.1/commons-fileupload-1.3.1.jar:/Users/sshugabugaa/.m2/repository/uk/co/caprica/vlcj/2.4.1/vlcj-2.4.1.jar:/Users/sshugabugaa/.m2/repository/net/java/dev/jna/jna/3.5.2/jna-3.5.2.jar:/Users/sshugabugaa/.m2/repository/net/java/dev/jna/platform/3.5.2/platform-3.5.2.jar:/Users/sshugabugaa/.m2/repository/org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar:/Users/sshugabugaa/.m2/repository/javazoom/jlayer/1.0.1/jlayer-1.0.1.jar:/Users/sshugabugaa/.m2/repository/org/mortbay/jetty/alpn/alpn-boot/8.1.0.v20141016/alpn-boot-8.1.0.v20141016.jar:/Users/sshugabugaa/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/Users/sshugabugaa/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/Users/sshugabugaa/.m2/repository/org/slf4j/slf4j-api/1.7.10/slf4j-api-1.7.10.jar:/Users/sshugabugaa/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.3/log4j-slf4j-impl-2.3.jar:/Users/sshugabugaa/.m2/repository/org/apache/logging/log4j/log4j-api/2.3/log4j-api-2.3.jar:/Users/sshugabugaa/.m2/repository/org/apache/logging/log4j/log4j-core/2.3/log4j-core-2.3.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-alpn-client/9.3.7.v20160115/jetty-alpn-client-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-http/9.3.7.v20160115/jetty-http-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/http2/http2-client/9.3.7.v20160115/http2-client-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/http2/http2-http-client-transport/9.3.7.v20160115/http2-http-client-transport-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/http2/http2-hpack/9.3.7.v20160115/http2-hpack-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/http2/http2-common/9.3.7.v20160115/http2-common-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-server/9.3.7.v20160115/jetty-server-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-security/9.3.7.v20160115/jetty-security-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-servlet/9.3.7.v20160115/jetty-servlet-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-util/9.3.7.v20160115/jetty-util-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-io/9.3.7.v20160115/jetty-io-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-client/9.3.7.v20160115/jetty-client-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar)". The required native libraries are named "libvlc.dylib" and "libvlccore.dylib". In the text below <libvlc-path> represents the name of the directory containing "libvlc.dylib" and "libvlccore.dylib"... There are a number of different ways to specify where to find the native libraries: 1. Include NativeLibrary.addSearchPath("vlc", "<libvlc-path>"); at the start of your application code. 2. Include System.setProperty("jna.library.path", "<libvlc-path>"); at the start of your application code. 3. Specify -Djna.library.path=<libvlc-path> on the command-line when starting your application. 4. Add <libvlc-path> to the system search path (and reboot). If this still does not work, then it may be necessary to explicitly add the native library directory to the operating system configuration - e.g. on Linux this might mean setting the LD_LIBRARY_PATH environment variable, or adding configuration to the "/etc/ld.so.conf" file or the "/etc/ld.so.conf.d" directory. Of these options, setting LD_LIBRARY_PATH is the only one that would not require root privileges. Finally, it is not possible to mix CPU architectures - it is not possible for a 64-bit Java Virtual Machine to load 32-bit native libraries. More information may be available in the log, specify -Dvlcj.log=DEBUG on the command-line when starting your application.

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

Solutions on the web

via GitHub by Shugabuga
, 1 year ago
Failed to load the native library. The error was "Unable to load library 'vlc': JNA native support (darwin/libvlc.jnilib) not found in resource path (/Users/sshugabugaa/AVS/alexa-avs-sample-app/samples/javaclient/target/classes:/Users/sshugabugaa
via GitHub by AMP648
, 9 months ago
Failed to load the native library. The error was "Unable to load library 'vlc': JNA native support (darwin/libvlc.jnilib) not found in resource path (/Users/andrewpelletier/Applications/alexa-avs-sample-app-master/samples/javaclient/target/classes
via GitHub by mahim1245
, 11 months ago
Failed to load the native library. The error was "Unable to load library 'vlc': Native library (linux-arm/libvlc.so) not found in resource path ([file:/home/pi/Desktop/alexa-avs-sample-app/samples/javaclient/target/classes/, file:/home/pi/.m2
via GitHub by johnbardeen
, 8 months ago
Failed to load the native library. The error was "Unable to load library 'vlc': Native library (linux-arm/libvlc.so) not found in resource path ([file:/home/pi/Desktop/alexa-avs-sample-app/samples/javaclient/target/classes/, file:/home/pi/.m2
via GitHub by rayfsthird
, 1 year ago
Failed to load the native library. The error was "Unable to load library 'vlc': Native library (linux-arm/libvlc.so) not found in resource path ([file:/opt/alexa-avs-raspberry-pi-master/samples/javaclient/target/classes/, file:/root/.m2/repository
via GitHub by satishc4u
, 5 months ago
Failed to load the native library. The error was "Can't obtain updateLastError method for class com.sun.jna.Native". The required native libraries are named "libvlc.so" and "libvlccore.so". In the text below <libvlc-path> represents the name of
java.lang.RuntimeException: Failed to load the native library. The error was "Unable to load library 'vlc': JNA native support (darwin/libvlc.jnilib) not found in resource path (/Users/sshugabugaa/AVS/alexa-avs-sample-app/samples/javaclient/target/classes:/Users/sshugabugaa/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:/Users/sshugabugaa/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/sshugabugaa/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar:/Users/sshugabugaa/.m2/repository/commons-fileupload/commons-fileupload/1.3.1/commons-fileupload-1.3.1.jar:/Users/sshugabugaa/.m2/repository/uk/co/caprica/vlcj/2.4.1/vlcj-2.4.1.jar:/Users/sshugabugaa/.m2/repository/net/java/dev/jna/jna/3.5.2/jna-3.5.2.jar:/Users/sshugabugaa/.m2/repository/net/java/dev/jna/platform/3.5.2/platform-3.5.2.jar:/Users/sshugabugaa/.m2/repository/org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar:/Users/sshugabugaa/.m2/repository/javazoom/jlayer/1.0.1/jlayer-1.0.1.jar:/Users/sshugabugaa/.m2/repository/org/mortbay/jetty/alpn/alpn-boot/8.1.0.v20141016/alpn-boot-8.1.0.v20141016.jar:/Users/sshugabugaa/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/Users/sshugabugaa/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/Users/sshugabugaa/.m2/repository/org/slf4j/slf4j-api/1.7.10/slf4j-api-1.7.10.jar:/Users/sshugabugaa/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.3/log4j-slf4j-impl-2.3.jar:/Users/sshugabugaa/.m2/repository/org/apache/logging/log4j/log4j-api/2.3/log4j-api-2.3.jar:/Users/sshugabugaa/.m2/repository/org/apache/logging/log4j/log4j-core/2.3/log4j-core-2.3.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-alpn-client/9.3.7.v20160115/jetty-alpn-client-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-http/9.3.7.v20160115/jetty-http-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/http2/http2-client/9.3.7.v20160115/http2-client-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/http2/http2-http-client-transport/9.3.7.v20160115/http2-http-client-transport-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/http2/http2-hpack/9.3.7.v20160115/http2-hpack-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/http2/http2-common/9.3.7.v20160115/http2-common-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-server/9.3.7.v20160115/jetty-server-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-security/9.3.7.v20160115/jetty-security-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-servlet/9.3.7.v20160115/jetty-servlet-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-util/9.3.7.v20160115/jetty-util-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-io/9.3.7.v20160115/jetty-io-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/org/eclipse/jetty/jetty-client/9.3.7.v20160115/jetty-client-9.3.7.v20160115.jar:/Users/sshugabugaa/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar)". The required native libraries are named "libvlc.dylib" and "libvlccore.dylib". In the text below <libvlc-path> represents the name of the directory containing "libvlc.dylib" and "libvlccore.dylib"... There are a number of different ways to specify where to find the native libraries: 1. Include NativeLibrary.addSearchPath("vlc", "<libvlc-path>"); at the start of your application code. 2. Include System.setProperty("jna.library.path", "<libvlc-path>"); at the start of your application code. 3. Specify -Djna.library.path=<libvlc-path> on the command-line when starting your application. 4. Add <libvlc-path> to the system search path (and reboot). If this still does not work, then it may be necessary to explicitly add the native library directory to the operating system configuration - e.g. on Linux this might mean setting the LD_LIBRARY_PATH environment variable, or adding configuration to the "/etc/ld.so.conf" file or the "/etc/ld.so.conf.d" directory. Of these options, setting LD_LIBRARY_PATH is the only one that would not require root privileges. Finally, it is not possible to mix CPU architectures - it is not possible for a 64-bit Java Virtual Machine to load 32-bit native libraries. More information may be available in the log, specify -Dvlcj.log=DEBUG on the command-line when starting your application.
at uk.co.caprica.vlcj.binding.LibVlcFactory.create(LibVlcFactory.java:191)
at uk.co.caprica.vlcj.player.MediaPlayerFactory.(MediaPlayerFactory.java:213)
at uk.co.caprica.vlcj.component.AudioMediaPlayerComponent.onGetMediaPlayerFactory(AudioMediaPlayerComponent.java:168)
at uk.co.caprica.vlcj.component.AudioMediaPlayerComponent.(AudioMediaPlayerComponent.java:102)
at com.amazon.alexa.avs.AVSAudioPlayer.setupAudioPlayer(AVSAudioPlayer.java:240)
at com.amazon.alexa.avs.AVSAudioPlayer.(AVSAudioPlayer.java:138)
at com.amazon.alexa.avs.AVSAudioPlayerFactory.getAudioPlayer(AVSAudioPlayerFactory.java:18)
at com.amazon.alexa.avs.AVSController.(AVSController.java:129)
at com.amazon.alexa.avs.AVSApp.(AVSApp.java:106)
at com.amazon.alexa.avs.AVSApp.(AVSApp.java:94)
at com.amazon.alexa.avs.AVSApp.main(AVSApp.java:89)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

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