Menu

native code

Help
frank
2007-12-17
2013-04-23
  • frank

    frank - 2007-12-17

    Hey,

    we want to use a native library, but when the constructor, which uses a native call, is called the framework seems to hang up.
    If we start concierge via:
    java -Djava.library.path=./libs -jar concierge.jar
    everything works fine.

    The class (with the mentioned constructor) also has a static method, which provides some setLibraryPath method.
    Using this method the framework hangs up as soon as we call the constructor.
    Setting "Bundle-NativeCode: moyocore.dll" in the manifest and putting the dll inside the bundle seems to have no effect.

    So is there a method to run the framework successfully without specifying the "-D.."-argument?

    Cheers,
    Frank

     
    • Jan S. Rellermeyer

      I'm clueless why this happens. What exactly is the "hanging up" behavior? Is the VM crashing or does the framework stop to boot up the bundles?
      Did you check the debug outputs? If I remember correctly, the native code resolving algorithm produces a verbose output that might be helpful.

      Cheers,

      Jan.

       

Log in to post a comment.