Java - Exception in thread "main" java.lang.UnsatisfiedLinkError: no dll in java.library.path
"Exception in thread "main" java.lang.UnsatisfiedLinkError: no dll in java.library.path" is a frusttrating exception you will get if your application is using native library from java.lang.System.loadLibarray() method. I was writing some Tibco Rendezvous Messaging code which uses some windows specific dll and I got "java.lang.UnsatisfiedLinkError: no *.dll in java.library.path". here we will see real cause of "Exception in thread "main" java.lang.UnsatisfiedLinkError: no dll in java.library.path" and how to fix this Exception in Java.
Cause of java.lang.UnsatisfiedLinkError: no dll in java.library.path:
When you load native library like .so on Linux or .dll on Windows using System.loadLibrary() it looks for those shared library in both PATH environment variable and java.libarary.path system property, if it doesn't find shared library it throws "Exception in thread "main" java.lang.UnsatisfiedLinkError: no in java.library.path". now trick is that in Windows it picks up dll form System32 folder and most of the time System32 exits in path so we don't usually come up with this problem. anyway if you are repeatedly getting this Error than you can try following step which may help you to resolve java.lang.UnsatisfiedLinkError in your java application.
Solution of "Exception in thread "main" java.lang.UnsatisfiedLinkError: no dll in java.library.path"
if it shows "Exception in thread "main" java.lang.UnsatisfiedLinkError: no dll in java.library.path" means JVM is not able to locate and load library.
How to fix java.lang.UnSupportedClassVersionError in Java
How to debug Java program in Eclipse – Java Debugging tips
How to remote debug Java application in Eclipse
Difference between ClassNotFoundException vs NoClassDefFoundError in Java
How to resolve java.lang.ClassNotFoundException in Java
How to fix Java.lang.OutOfMemroyError in Tomcat Server
How to solve Invalid Column Index Exception in Java JDBC
How to solve java.util.nosuchelementexception hashtable enumerator
How to fix java.lang.nosuchmethoderror main in Java
No comments:
Post a Comment