File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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: 24187
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsatisfiedLinkError