Hi,
i creat a plugin wich includes the folder structure
- src
- native/so/libsystemcommand.so
- META-INF/MANIFEST.MF
The manifest include the command
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Commands Plug-in
Bundle-SymbolicName: de.system.commands;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: de.system.commands.CommandsPlugin
Bundle-Localization: plugin
Bundle-NativeCode: native/so/libsystemcommand.so; osname = Linux; processor = x86
Require-Bundle: org.eclipse.core.runtime,
org.apache.commons.logging
Eclipse-AutoStart: true
Export-Package: de.system.commands,
de.system.commands.jni,
de.system.commands.utils
Bundle-ClassPath: .
The build.properties looks like
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
native/
in the start methode of my Activator class i call
System.loadLibrary("systemcommand");
At runtime the library is not found and a UnsatisfiedLinkError is thrown.
java.lang.UnsatisfiedLinkError: no libsystemcommand in java.library.path
Do i have to set more attributes in the plugin? Do i have to unzip some informations on the target platform?
EDIT:
java.library.path=/opt/jdk/j2re1.4.2_16/lib/i386/client:/opt/jdk/j2re1.4.2_16/lib/i386:/opt/jdk/j2re1.4.2_16/../lib/i386::/opt/dsa/lib:/opt/dsa/lib