Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » please help: can't get native code to work
please help: can't get native code to work [message #104534] Tue, 29 January 2008 07:55
deng kun is currently offline deng kunFriend
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.
Previous Topic:UserAdmin GUI
Next Topic:disconnect cache or performance enhancement on update
Goto Forum:
  


Current Time: Fri Apr 26 17:47:59 GMT 2024

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

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

Back to the top