[Xapian-discuss] Java-Binding - libxapian path

Jim jim at fayettedigital.com
Mon Feb 18 14:15:00 GMT 2008


Martin Thelian wrote:
> Hi!
>
> Thank you for your help.
>
> Olly Betts schrieb:
>   
>> You don't say what platform you're using, but most Unix-like platforms
>> provided an environmental variable which you can set to a list of paths
>> to be searched for shared libraries.
>> [...]
>>
>> LD_LIBRARY_PATH=/path/to/where/xapian-core/really/is/lib
>> export LD_LIBRARY_PATH
>> <run java program>
>>
>> I believe you can also pass the option
>> -Djava.library.path=/path/to/where/xapian-core/really/is/lib when
>> invoking the java interpreter, but setting the environmental variable
>> works better 
>>   
>>     
>
>
> I've already tried using LD_LIBRARY_PATH before, but I did not realize 
> that eclipse does not recognize environment variables defined on the 
> command-line. If I specify it in the launch configuration it works. 
> Thanks :-)
>
>   
If you need to run it as a command line argument, you can try the following:

env LD_LIBRARY_PATH=/path/to/where/xapian-core/really/is/lib eclipse

That'll do the same as setting it in the environment, but only do it for 
the one command, in case it causes problems later.

Jim.



More information about the Xapian-discuss mailing list