wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes UnsatisfiedLinkError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "UnsatisfiedLinkError" Watch "UnsatisfiedLinkError" New topic
Author

UnsatisfiedLinkError

Carl Pettersson
Ranch Hand

Joined: Sep 09, 2003
Posts: 73
I am getting an UnsatisfiedLinkError at runtime, and I can't understand why. Class FS2 begins with

FS2.h declares the native method like this:

And the function is implemented with a copy/paste, and compiled to FS2CFunk.dll.

The only idea I can come up with is the return type causing problems... I declare the array to be returned with
int *itArray = new int[scrX * scrY];
and then return it by casting
return (jintArray)*itArray;

Ideas?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Is FS2CFunk.dll on your PATH?


[Jess in Action][AskingGoodQuestions]
Carl Pettersson
Ranch Hand

Joined: Sep 09, 2003
Posts: 73
Odd... Changing the method name made it work.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: UnsatisfiedLinkError
 
Similar Threads
UnsatisfiedLinkError
UnsatisfiedLinkError
How to solve UnsatisfiedLinkError? - URGENT...please help
UnsatisfiedLinkError
UnsatisfiedlinkError