如何为 VLCJ 添加或安装本机 x64 库? [英] How do I add or install the native x64 libraries for VLCJ?

查看:38
本文介绍了如何为 VLCJ 添加或安装本机 x64 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用 Java 制作一个带有视频播放器的信使程序,所以我使用的是 vlcj.但我收到此错误:

I am trying make a messenger program in Java that has a video player in it, so I'm using vlcj. But I receive this error:

线程main"中的异常java.lang.UnsatisfiedLinkError:
无法加载库libvlc":
找不到指定的模块.

Exception in thread "main" java.lang.UnsatisfiedLinkError:
Unable to load library 'libvlc':
The specified module could not be found.

我遵循了这里的教程,但我仍然得到这个错误.这是我得到的唯一错误.

I have followed the tutorials from here, but I still get this error. This is the only error that I get.

我在带有 x64 VLC 的 Windows 7 x64 Ultimate 上运行.我正在使用最新的 Eclipse 版本进行编码.

I'm running on Windows 7 x64 Ultimate with a x64 VLC. I'm coding using the latest Eclipse version.

谁能指导我逐步解决这个问题?

Can anyone guide me step-by-step on how to fix this?

推荐答案

您必须在应用程序中添加libvlc"和libvlccore"dll 路径.这些将出现在您的 vlc 安装文件夹中.您可以添加以下代码行以使其正常工作.

you have to add "libvlc" and "libvlccore" dll path in your application. these will be present into your vlc installation folder. you can add following line of code to get it working.

NativeLibrary.addSearchPath("libvlc", "C:/VideoLAN/VLC");

这里C:/VideoLAN/VLC"是vlc的安装文件夹.

here "C:/VideoLAN/VLC" is installation folder of vlc.

这篇关于如何为 VLCJ 添加或安装本机 x64 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆