This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "UnsatisfiedLinkError" Watch "UnsatisfiedLinkError" New topic
Author

UnsatisfiedLinkError

Monoj Roy
Ranch Hand

Joined: Oct 10, 2007
Posts: 98
Hi I am getting the following error in my RAD 7 console

java.lang.UnsatisfiedLinkError: pdosapi (JVMPORT015E Unable to resolve DLL references - a prerequisite DLL may be missing)

I have put the pdosapi.dll in the PATH variable ..Anything more need to configure..?Please help and let me know if there is any special file where from RAD 7 reads the .dll file ..
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

Hi,
I am unaware of Rad 7 but from your post, it seems that you are doing it the wrong way. Because you dont put the dll in the path variable, its not going to help. instead put the dll in the application installation directory.


Hope this helps


SCJP, SCWCD.
|Asking Good Questions|
Monoj Roy
Ranch Hand

Joined: Oct 10, 2007
Posts: 98
Thanks but its not working again .. and the same error ..
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
Don't know for sure if it helps, but have you tried registering the dll?
Or as a last resort have you tried moving the dll to System32 folder of Win OS?


Aditi
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14278
    
  21

UnsatisfiedLinkError means that Java cannot find a native library (a DLL on Windows) that it needs. Try starting your program by using the -Djava.library.path=... option:

java -Djava.library.path=dir that contains the DLL com.mycompany.mypackage.MyMainClass


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Originally posted by K Aditi:
Don't know for sure if it helps, but have you tried registering the dll?
Or as a last resort have you tried moving the dll to System32 folder of Win OS?


You don't need to register JNI DLLs with Windows. Registering DLLs is a COM thing, I believe.

Be very careful about moving DLLs to System32. You can get very confused if you ever forget to remove it again. I advise against "trying" this.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Monoj Roy
Ranch Hand

Joined: Oct 10, 2007
Posts: 98
Thanks a lot each of you for helping my problem .

I solved it .

The problem was I have not included another .dll file that was reference by pdosapi.dll which is my application specific ,Now I have put all of them in a folder and added them to PATH and it is working .

Once again Thanks everybody .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsatisfiedLinkError