This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
jQuery in Action, 2nd edition
 
subject: UnsatisfiedLinkError
 
Similar Threads
UnsatisfiedLinkError
UnsatisfiedLinkError
How to solve UnsatisfiedLinkError? - URGENT...please help
UnsatisfiedLinkError
UnsatisfiedlinkError