Osgi will not match the internal code inside the package

I am trying to use a specific Eclipse plugin with native code dependencies. These dependencies always remain unresolved, so this plugin never loads OSGI.

MANIFEST.MF

    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: PROS Cortex Flash Utility
    Bundle-SymbolicName: com.purduesigbots.vexflash; singleton:=true
    Bundle-Version: 1.0.0.6
    Bundle-Activator: com.purduesigbots.vexflash.Activator
    Bundle-Vendor: Purdue ACM SIG BOTS
    Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,org.eclipse.co
     re.resources,org.eclipse.ui.ide;bundle-version="3.7.0",org.eclipse.de
     bug.ui;bundle-version="3.7.0"
    Bundle-RequiredExecutionEnvironment: JavaSE-1.6
    Bundle-ActivationPolicy: lazy
    Bundle-NativeCode:
      /libs/windows/jSSC-2.6_x86_64.dll;
      osname=win32; processor=x86_64, *
    Bundle-ClassPath: .,jna.jar,platform.jar

The path to the dll is / libs / windows / jSSC -2.6_x86_64.dll inside the bundle banner. I tried many different things to try to get the bootloader to boot without success.

How can I get OSGI to load my own library? I am running JRE 8 64 bit on Windows 10.

EDIT:

I modified MANIFEST.MF to make it work

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: PROS Cortex Flash Utility
Bundle-SymbolicName: com.purduesigbots.vexflash; singleton:=true
Bundle-Version: 1.0.0.6
Bundle-Activator: com.purduesigbots.vexflash.Activator
Bundle-Vendor: Purdue ACM SIG BOTS
Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,org.eclipse.co
 re.resources,org.eclipse.ui.ide;bundle-version="3.7.0",org.eclipse.de
 bug.ui;bundle-version="3.7.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-NativeCode:
#The OS name is not in OS aliases for OSGI, so the full name must be used
  /libs/windows/jSSC-2.6_x86_64.dll;
  osname=win32; osname="Windows 10"; processor=x86_64
Bundle-ClassPath: .,jna.jar,platform.jar
+4
source share
1 answer

RCP, UnsatisfiedLinkError DLL, JRE 1.8.0.5 1.8.0.162. , : Java OSGi, win32 Bundle-NativeCode Windows 10. , , , Java , , Windows. OSGi, win32. Java , , - "Windows 10". OSGi -Luna Windows 10 , , win32.

, , , org.osgi.framework.os.name , , :

-Dorg.osgi.framework.os.name=win32

OSGi 3.10.0.

, "Windows 10" os.name , , . , , .

0

Source: https://habr.com/ru/post/1623987/


All Articles