| [news.eclipse.newcomer] Re: Help with jar export and external library |
The only way to get external-dependencies to work is to either:
A) deploy with your app everything it needs, including third-party libraries
or
B) Provide a mechanism by which the user can configure your app start-up to tell it where to find the libraries it needs.
Option A is generally preferred, because it reduces any headaches like you are experiencing. Option B relies on the user not only having the libraries but also being able to configure your app to point it in the right place. When going the option B route, you will almost certainly have to provide one or more script files (shell or batch) that can be tweaked to set the -classpath and -Djava.library.path appropriately. It is more work for the user and the developer, which is why I always choose option A whenever possible.
Thanks for the response, /Paul