|
-
UnSatisfiedLink error: no sofile in java.library.path
Hi,
i've written the folowing program to load a '.so'. I'm working in LINUX.
public class loadSO
{
public static void main(String args[])
{
System.loadLibrary("sofile");
}
}
The program give mes the java.lang.UnsatisfiedLink error : no sofile in java.library.path
If i put a System.out.println(System.getProperty("java.library.path")); i get the value as null.
I've set LD_LIBRARY_PATH to /usr/lib. No use.
I tried setting java.library.path System.setProperty("java.library.apth","/usr/lib"); but that doesn't help
I even tried to put the lib in the same folder as the java file. but that doesn't help either.
can anyone point out my mistake to me?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks