Hi Eydal,

as far as I know you need to set the environment variable 'LD_LIBRARY_PATH'
before you start the java application.

export LD_LIBRARY_PATH=/path/with/the/so/file
after that, starting the java app.

CU,
Jochen


2010/4/12 eyal edri <[email protected]>

> Hi,
>
> i'm deploying a java application (jar) on a linux server using rpm
> (maven-rpm-plugin).
>
> the jar uses JNI code which needs LD_LIBRARY_PATH defined, in order to find
> the .so files.
>
> can i define it in the manifest file (similar to class-path?)
>
> what's the best practice to do it?
>
> I've tried putting it in the cron file that launch the app but
> it doesn't work..
>
> thanks.
>
> --
> Eyal Edri
>

Reply via email to