views:

119

answers:

1

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.

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.

the files are located in c:\JMF*.dll

I tried to add the folder path to the environment variable in windows - didn't work.

I tried to add them into another Jar and add it to the project - didn't work.

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.

A: 

One way to do this is by coping the native files to the application(runnable jar) folder, of course it must be familiar with it.

but if I would like to put them somewhere else, lets say "Z:\JMF Native" how do I point to there on an exported runnable jar?

Or if you have a better solution, I'm all ears.

Thanks in advance,

Adam Zeahvi.

TacB0sS