Skip to Content

JNI under MobileEngine

Hi all,

we have problem with calling native methods in MobileEngine context. The DLL is where it should be, all seems to be OK, but when System.loadLibrary() is called it raises an exception like

java.lang.UnsatisfiedLinkError: no <Our DLL name> in shared library path

at java.lang.Runtime.loadLibrary(

at java.lang.System.loadLibrary(

at .... etc.

The same class works perfectly when it's called outside tomcat. In the forums we have found some information, that there are problems with JNI under tomcat/servlet containers.

Does have someone more information about? Does have SAP some patch or workaround in ME on that problem?

Thanks in advance,

best regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 17, 2004 at 09:20 AM

    Hi, could you provide a little more info, like where is the .dll located, what'S your java.library.path when your class is running. Cheers, stefan

    Add a comment
    10|10000 characters needed characters exceeded

    • Yes, of course I give just the name of the DLL without the extension. I write the extension only when I'm trying to use System.load(), instead of System.loadLibrary().

      Also setting -Djava.library.path=\windows in the startup string doesn't work. It was one of the first things I have tried, but it just has no effect - the "java.library.path" property is still null :(. Thence behaviour we have assumed that the problem is in the more-than-one Classloaders in tomcat. The assumption comes by a colleague, that have more experience with tomcat, I personally have just a little bit idea from the tomcat's secrets.

      Now we have solved the problem by other way, and we do not need to call native methods. But the problem still persists, and in the future I suppose we will have again a lot of 'Fun' with it. 😊

      Thanks to anyone who helps for the solution!

      Best regards

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.