Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

JNI and nested class

Thread view: 
vahania63@yahoo.com - 27 Apr 2007 12:43 GMT
I am having problem with JNI. I am not new to JNI and used it quite
extensively before. The only difference is that now I defined native
function in the nested class. When I run the software I get
'UnsatisfiedLinkError' when I call this function. At the same time if
I put this function back into the outer class everything is fine.

Do you have any idea why is that? Just in case I use Linux Fedora Core
4, Sun JDK 1.5, update 7.

Thanks
Gordon Beaton - 27 Apr 2007 13:20 GMT
> I am having problem with JNI. I am not new to JNI and used it quite
> extensively before. The only difference is that now I defined native
> function in the nested class. When I run the software I get
> 'UnsatisfiedLinkError' when I call this function. At the same time
> if I put this function back into the outer class everything is fine.

Did you run javah using the fully qualified name of the nested class,
and then update the source using the new generated function names? Do
you call System.loadLibrary() from the nested class?

/gordon

--


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.