Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnsatisfiedLinkError

 
Monoj Roy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Monoj Roy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks but its not working again .. and the same error ..
 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15437
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Monoj Roy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic