Re: [Java-gnome-developer] win32 java.lang.UnsatisfiedLinkError: gtk_init
Brought to you by:
afcowie
From: Simon G. <si...@sg...> - 2005-03-08 06:54:21
|
On Mon, 2005-03-07 at 18:29 -0800, Ka-Hing Cheung wrote: > I think the problem is that Windows cannot find the dll for GTK (not > gtkjava), which causes the failure when JVM tries to load > gtkjni-2.4.dll. > > -khc I don't think so. If you run the java command from a MS-DOS prompt, then it tells you about any missing DLL dependency that it cannot load, and there are no such messages. As it is Java that is throwing the unsatisfied link error, I believe it must be the definition of a native method that it cannot find, i.e. something within the gtkjni-2.4.dll itself, as suggested by a previous post. If it had successfully found the native method and the problem was something the native method itself was calling, I don't think I would get a UnsatisfiedLinkError, because it would be out of the JVM's hands by then. But I'm no JNI expert, so if someone with more experience could confirm or deny... |