简体   繁体   English

导出对本机库的引用的Eclipse项目

[英]Exporting Eclipse project with a reference to native library

I have an Eclipse project, that uses JMF, I found out I could skip the JMF installation process and still to use the CaptureDeviceManager of the JMF, and to receive the list of devices if I could point my project to the native lib of the JMF. 我有一个使用JMF的Eclipse项目,我发现我可以跳过JMF的安装过程,仍然可以使用JMF的CaptureDeviceManager,并且可以接收项目列表(如果我可以将项目指向JMF的本机库) 。

I've managed to add the native lib to the IDE run/debug, but once I export the application to an external runnable Jar, the application cannot find the native lib. 我设法将本机库添加到IDE运行/调试中,但是一旦将应用程序导出到外部可运行的Jar中,应用程序就找不到本机库。

the files are located in c:\\JMF*.dll 这些文件位于c:\\ JMF * .dll中

I tried to add the folder path to the environment variable in windows - didn't work. 我试图将文件夹路径添加到Windows中的环境变量-不起作用。

I tried to add them into another Jar and add it to the project - didn't work. 我试图将它们添加到另一个Jar中并将其添加到项目中-无效。

I tried to add the files into the project - didn't work. 我试图将文件添加到项目中-无效。

I tried to add the path to the class path - didn't work. 我试图将路径添加到类路径-不起作用。

I tried to add the path to the library path - didn't work. 我试图将路径添加到库路径-不起作用。

does someone have any sort of a solution? 有人有什么解决方案吗?

Thanks in advance, Adam Zehavi. 在此先感谢亚当·泽哈维。

You can have a look at this: How to capture video using JMF, but without installing JMF 您可以看一下: 如何使用JMF捕获视频,但不安装JMF

It's probably doing what you need. 它可能正在做您所需要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM