please help: can't get native code to work [message #104534] |
Tue, 29 January 2008 07:55 |
deng kun![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=kundeng06%40gmail.com) Messages: 1 Registered: July 2009 |
Junior Member |
|
|
Hi,I have an urgent question. I am making a bundle for hdf(hierarchical
data format) library. This library uses native code for different
platforms, so I made a bundle with the following manifest:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Osgi Plug-in
Bundle-SymbolicName: hdf.osgi
Bundle-Version: 1.0.0
Bundle-ClassPath: lib/jhdf5.jar,
lib/jhdf5obj.jar,
lib/jhdfobj.jar,
.
Export-Package: ncsa.hdf.hdf5lib,
ncsa.hdf.hdf5lib.exceptions,
ncsa.hdf.object;uses:="javax.swing.tree",
ncsa.hdf.object.h5;uses:="javax.swing.tree,ncsa.hdf.object"
Bundle-NativeCode: lib/win/jhdf5.dll; osname=win32;
processor=x86,lib/macosx/libjhdf5.jnilib; osname=macosx;
processor=x86,lib/linux/libjhdf5.so; osname=linux; processor=x86
Bundle-Activator: hdf.osgi.Plugin
Import-Package: org.osgi.framework;version="1.3.0"
My problem is that it works fine when I do not "export" it to a jar file
(that is inside eclipse IDE when I run or debug it with some simple code
that triggers the loading of native dll). However we I use it with the
bare equinox framework
org.eclipse.osgi_3.3.1.R33x_v20070828.jar, the native code is not
extracted and thus it doesn't work at all. Can someone please give me
some idea as why?? Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02982 seconds