File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "UnsatisfiedLinkError" Watch "UnsatisfiedLinkError" New topic


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;

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

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.
I agree. Here's the link:
subject: UnsatisfiedLinkError
It's not a secret anymore!