Skip to main content



      Home
Home » Newcomers » Newcomers » where to put LD_LIBRARY_PATH for my plugin?
where to put LD_LIBRARY_PATH for my plugin? [message #246101] Mon, 21 January 2008 09:53 Go to next message
Eclipse UserFriend
Hi there,

I have written a plugin, which uses some native C-Library. It works fine
if I set the LD_LIBRARY_PATH variable in the run-configuration of my
application.

Now I want to use my plugin by some other project without always setting
that variable for every new project. Can I set the required native
library path somewhere in the plugin's manifest.mf or plugin.xml??

Cheers,
Hauke
Re: where to put LD_LIBRARY_PATH for my plugin? [message #246200 is a reply to message #246101] Mon, 21 January 2008 10:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Hauke,

There's probably a global CDT preferences similar to Java's classpath
variables for setting such things. It might be best to ask on the CDT
newsgroup: news://news.eclipse.org/eclipse.tools.cdt


Hauke Fuhrmann wrote:
> Hi there,
>
> I have written a plugin, which uses some native C-Library. It works fine
> if I set the LD_LIBRARY_PATH variable in the run-configuration of my
> application.
>
> Now I want to use my plugin by some other project without always setting
> that variable for every new project. Can I set the required native
> library path somewhere in the plugin's manifest.mf or plugin.xml??
>
> Cheers,
> Hauke
>
Re: where to put LD_LIBRARY_PATH for my plugin? [message #246760 is a reply to message #246200] Fri, 25 January 2008 05:56 Go to previous messageGo to next message
Eclipse UserFriend
Ed,

I'm not sure if I made the point clear: I have a Java Plugin, wich uses
the JNI to access some binary library. I want to pack that library into
my plugin so that its use is transparent to any other user that uses my
Java Eclipse Plugin. As I understand, this has nothing to do with CDT,
does it?

Hauke

Ed Merks wrote:
> Hauke,
>
> There's probably a global CDT preferences similar to Java's classpath
> variables for setting such things. It might be best to ask on the CDT
> newsgroup: news://news.eclipse.org/eclipse.tools.cdt
>
>
> Hauke Fuhrmann wrote:
>> Hi there,
>>
>> I have written a plugin, which uses some native C-Library. It works fine
>> if I set the LD_LIBRARY_PATH variable in the run-configuration of my
>> application.
>>
>> Now I want to use my plugin by some other project without always setting
>> that variable for every new project. Can I set the required native
>> library path somewhere in the plugin's manifest.mf or plugin.xml??
>>
>> Cheers,
>> Hauke
>>
Re: where to put LD_LIBRARY_PATH for my plugin? [message #246770 is a reply to message #246760] Fri, 25 January 2008 06:07 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Hauke,

The native C-library threw me. When designing plugins, all classpath
things need to be specified via the bundle classpath in the MANIFEST.MF
but I'm not sure this would be done via the classpath. If not, it
sounds like SWT would be doing something similar so likely looking at
how SWT binds in the native libraries will help...


Hauke Fuhrmann wrote:
> Ed,
>
> I'm not sure if I made the point clear: I have a Java Plugin, wich uses
> the JNI to access some binary library. I want to pack that library into
> my plugin so that its use is transparent to any other user that uses my
> Java Eclipse Plugin. As I understand, this has nothing to do with CDT,
> does it?
>
> Hauke
>
> Ed Merks wrote:
>
>> Hauke,
>>
>> There's probably a global CDT preferences similar to Java's classpath
>> variables for setting such things. It might be best to ask on the CDT
>> newsgroup: news://news.eclipse.org/eclipse.tools.cdt
>>
>>
>> Hauke Fuhrmann wrote:
>>
>>> Hi there,
>>>
>>> I have written a plugin, which uses some native C-Library. It works fine
>>> if I set the LD_LIBRARY_PATH variable in the run-configuration of my
>>> application.
>>>
>>> Now I want to use my plugin by some other project without always setting
>>> that variable for every new project. Can I set the required native
>>> library path somewhere in the plugin's manifest.mf or plugin.xml??
>>>
>>> Cheers,
>>> Hauke
>>>
>>>
Previous Topic:how to clear "Problems" screen
Next Topic:Plug class not found during build
Goto Forum:
  


Current Time: Mon May 12 17:31:25 EDT 2025

Powered by FUDForum. Page generated in 0.09022 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top