Hi all,
I have found many topics about this issue but none of the presented solutions
solved my problem.
My system: JBoss 3.2.6, Java 1.4.2_09 and Fedora Core 4
I?m trying to use some native methods available on a .so file. I?m able to load
the library but the first time I use a native method I get a
java.lang.UnsatisfiedLinkError. The code I?m using to load the lib is the
following:
try {
System.loadLibrary("example");
} catch (UnsatisfiedLinkError e) {
log.info("Native code library failed to load." + e);
}
If I change the lib name the presented exception is thrown. If the lib name is
correct no errors occur, that?s why I said that the lib is correctly loaded.
The lib file is not included in any jar file. I already updated all the system
path variables, -Djava.library.path options, etc, pointing to the directory
containing the lib file. I already moved the lib to all the directories
suggested in this forum with no luck. I already placed the presented code in
the Class with the native method that is first called with no luck.
I?m really with no more solutions to test. The strange thing is that the lib is
loaded but I can't to use it. I read that EJB specification doesn?t advise
(prohibits???) the use of native libs but I think JBoss allows it, that?s true?
I implemented a standalone application that doesn?t use JBoss and everything
works fine.
Have anyone an idea that could help me? I?m without solutions?
Best Regards,
Bruno Mateus
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904363#3904363
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904363
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user