- This is the program:
public class HelloDll
{
public static void main(
String a[])
{
String lib_dir = System.getProperty("user.home");
System.loadLibrary("jawt");
System.out.println("loaded..");
}
}
- 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