Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Native library and java.library.path
Native library and java.library.path [message #209141] Wed, 10 March 2004 16:38 Go to next message
Eclipse UserFriend
Hi,
I am developping an Eclipse plugin targeting for the moment AIX and I
use JNI and a native library to do some kernel calls.
I have put the library in my_plugin_aix_1.0.0/os/aix/ppc/libmylib.so I
would like that Eclipse automatically knows my native library without
setting manually the LIBPATH environnement variable to my directory.
Do you have some idea ?

I see that Eclipse change the LIBPATH for SWT native library at install,
can I do the same ? and how ?

Today my plugin repository is organized as follow:
my_plugin_1.0.0/ ... here is the main plugin part... UI only
my_plugin_aix_1.0.0/ ... here is the native part ... a fragment for my
plugin

Thanks!
Re: Native library and java.library.path [message #209700 is a reply to message #209141] Thu, 11 March 2004 10:40 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.REMOVE.ca.ibm.com

As far as I know you should not have to set the LIBPATH etc. There was a
special problem with SWT I think that may have required that. you should be
able to loadLibrary("mylib"). Please ensure that your -os and -arch values
are set correctly and that your lib is actually in the right dir.

BTW, you should mention what build you are using.

Jeff

"strus" <strus_fr@yahoo.fr> wrote in message news:c2o1k8$p8$1@eclipse.org...
> Hi,
> I am developping an Eclipse plugin targeting for the moment AIX and I
> use JNI and a native library to do some kernel calls.
> I have put the library in my_plugin_aix_1.0.0/os/aix/ppc/libmylib.so I
> would like that Eclipse automatically knows my native library without
> setting manually the LIBPATH environnement variable to my directory.
> Do you have some idea ?
>
> I see that Eclipse change the LIBPATH for SWT native library at install,
> can I do the same ? and how ?
>
> Today my plugin repository is organized as follow:
> my_plugin_1.0.0/ ... here is the main plugin part... UI only
> my_plugin_aix_1.0.0/ ... here is the native part ... a fragment for my
> plugin
>
> Thanks!
>
Previous Topic:how to launch workbench after an RCP?
Next Topic:org.osgi.framework.BundleActivator
Goto Forum:
  


Current Time: Tue May 20 18:17:43 EDT 2025

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

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

Back to the top