question

bobs0327 avatar image
bobs0327 asked

Problem building JavaClient on Windows 64 bit machine

I am attempting to build the AVS sample on a Window 10 64 bit machine. Any assistance would be greatly appreciated... I build as follows: mvn -X -e exec:exec The issue is as follows: Exception in thread "main" java.lang.RuntimeException: Failed to load the native library. The error was "Unable to load library 'libvlc': JNA native support (win32-amd64/libvlc.dll) not found in resource path The required native libraries are named "libvlc.dll" and "libvlccore.dll". In the text below represents the name of the directory containing "libvlc.dll" and "libvlccore.dll"... There are a number of different ways to specify where to find the native libraries: 1. Include NativeLibrary.addSearchPath("libvlc", " "); at the start of your application code. 2. Include System.setProperty("jna.library.path", " "); at the start of your application code. 3. Specify -Djna.library.path= on the command-line when starting your application. 4. Add 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:230) at com.amazon.alexa.avs.AVSAudioPlayer. (AVSAudioPlayer.java:129) at com.amazon.alexa.avs.AVSAudioPlayerFactory.getAudioPlayer(AVSAudioPlayerFactory.java:14) at com.amazon.alexa.avs.AVSController. (AVSController.java:86) at com.amazon.alexa.avs.AVSApp. (AVSApp.java:89) at com.amazon.alexa.avs.AVSApp. (AVSApp.java:79) at com.amazon.alexa.avs.AVSApp.main(AVSApp.java:74)
alexa voice service
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bobs0327 avatar image
bobs0327 answered
[b]PROBLEM SOLVED.[/b] I was incorrectly using 32 bit VLC version. Changed to 64 bit version to resolve problem
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bobs0327 avatar image
bobs0327 answered
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.