Javier Vazquez said:
Let's say it's a JMF-Project, will the imported JMF-Libraries be
exported into the jar as well? I can't expect a normal user to have JMF
installed on his PC...
No. There are several ways to solve this:
1. Unpack the libraries and repack them in you .jar file.
This generally is a bad idea, because of several reasons:
- Licencing. Using a (L)GPL'ed library requires you to use the same
licence for your work. For commercial licences, note that this means
"reverse engineering", even though it's just unpacking, and is
generally prohibited.
- It's difficult to replace a library with a different version
(you doin't expect to need this though)
2. Use "Class-Path" headers in your manifest
This works fine, but requires you to distribute the libraries alongside
your application. They must be referenced from a location relative to
your application.
3. Require the user to have the libraries installed as extensions.
Apart from the fact that you stated you don't expect a user to do this,
it also means you're inviting version problems: all applications must
use the same version of the library. With option 2 the library version
to use can be managed per application.
IMHO, the second option to be the best.