I am creating a plugin that includes the following folder structure:
- src
- native / so / libsystemcommand.so
- META-INF / MANIFEST.MF
The manifest includes 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 construct looks like
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
native/
In the method of starting my class, ActivatorI call
System.loadLibrary("systemcommand");
At runtime, the library was not found and an UnsatisfiedLinkError is called .
java.lang.UnsatisfiedLinkError: no libsystemcommand in java.library.path
Should I set more attributes in the plugin? Should I unzip some information 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
source
share