Re: [Java-gnome-developer] win32 java.lang.UnsatisfiedLinkError: gtk_init
Brought to you by:
afcowie
From: Jeff M. <ku...@gm...> - 2005-03-07 17:52:50
|
On Mon, 7 Mar 2005 15:21:33 +0000, Simon Godden <si...@sg...> wrote: > I have built gtk-java using MinGW, no problem. > > But when I try to run anything I get > > java.lang.UnsatisfiedLinkError: gtk_init > > Running nm on the gtkjni-2.4.dll produced shows that symbols are e.g. > > Java_org_gnu_gtk_Gtk_gtk_1init@16 > > i.e. the native method is called gtk_1init, and not gtk_init. Simon, the name of the native method is correct. At runtime this name is usually translated so the java code can find the proper JNI method. On the windows platform this translation is not taking place. I reported it to the gcc team via an email about two weeks ago. I still haven't received a response. I will post to the list one more time and follow up with a bugzilla report. > > Can someone explain what is going on here. Probably just my ignorance > of how JNI is working, but the method names in the jni c sources don't > look like they match what is expected in the java sources. The method call is correct. If you run the java file through javah you will see that this is the method created. > > Simon. > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > -- Jeffrey Morgan "The highest reward for a man's toil is not what he gets for it, but what he becomes by it" - Jon Ruskin |