File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java 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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "UnsatisfiedLinkError" Watch "UnsatisfiedLinkError" New topic


seetharaman jayaraman
Ranch Hand

Joined: Feb 18, 2008
Posts: 43
- This is the program:
public class HelloDll
public static void main(String a[])
String lib_dir = System.getProperty("user.home");
- When i am executing from Netbeans IDE, it runs
- But i am getting the below error when i try to run from command prompt
- Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.6.0\bin\jawt.dll: Can't find dependent libraries
- Even if i get output in my system, it gives same above error in some other system
- Please help
- All the best
- Thanks

Seetharaman Jayaraman
Only Change is Changeless
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Why on Earth would you want to do System.loadLibrary() on a DLL that's in the JRE?

Do you understand what System.loadLibrary() is for?

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
I agree. Here's the link:
subject: UnsatisfiedLinkError
It's not a secret anymore!