Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Look at this: <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/UnsatisfiedLinkError.html" rel="nofollow">http://docs.oracle.com/javase/7/docs/api/java/lang/UnsatisfiedLinkError.html</a>.</p> <blockquote> <p>Thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method declared <code>native</code>.</p> </blockquote> <p>The problem is not with the JVM per se, but with the JVM being unable to find your native libraries. You need to specify the path where the native libraries are stored. This can be done by adding the following as an argument to your JVM in eclipse:</p> <pre><code>-Djava.library.path=... </code></pre> <p>Here, take a look at this: <a href="http://mindprod.com/jgloss/runerrormessages.html#UNSATISFIEDLINKERROR" rel="nofollow">http://mindprod.com/jgloss/runerrormessages.html#UNSATISFIEDLINKERROR</a></p> <blockquote> <p><li> If you get the error after the class containing the native method is safely loaded, when you invoke a native method, make sure you generated your <code>*.h</code> file with the fully qualified <b><code>javah.exe -jni -o mouse.h com.mindprod.mouse.Mouse</code></b> and not simply <b><code>javah Mouse</code></b> <li> If you get the error after the class containing the native method is safely loaded, when you invoke a native method, check that the <code>*.cpp</code> method signatures exactly match those in the <code>*.h</code> file. You should see method names like this: <b><code>Java_com_mindprod_mouse_Mouse_GetMousePosition</code></b> that start with the word Java and contain the package, class and method name all strung together. Make sure you remembered to implement all the methods. <li> You need to regenerate the <code>*.h</code> and recompile the <code>*.c</code> file if you change the package name.</p> </blockquote> <p>You should probably go through this list to make sure you're doing all the things correctly.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload