problem with platform filters [message #500601] |
Thu, 26 November 2009 20:29  |
Eclipse User |
|
|
|
Hello,
I have a plug-in that needs to load a native library from a fragment. It isn't
JNI stuff, it's a library that has to be searched for and loaded. Anyway, I'm
having trouble finding it, and I think the problem is with my platform filter.
The basic logic of the program is this:
URL libUrl = null;
if (os is windows) {
libUrl = MyPlugin.getDefault().getBundle().getResource(winLib);
} else if (os is linux) {
libUrl = MyPlugin.getDefault().getBundle().getResource(linuxLib);
}
However, both calls return null even though I know the libraries exist in my
fragment. I think that my platform filter for the fragment is wrong. It looks
like this:
(&(|(&(osgi.os=win32)(osgi.ws=win32))(&(osgi.os= linux)(|(osg.ws=gtk)(osgi.ws=motif)))))
Can someone please help? Thanks.
Del
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.18206 seconds